mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 05:44:52 +00:00
13 lines
328 B
JavaScript
13 lines
328 B
JavaScript
// Run with
|
|
// npm install ../../api/sixtyfps-node && node main.js
|
|
|
|
// import "sixtyfps";
|
|
require("sixtyfps");
|
|
// import * as myModule from "../cpptest/hello.60";
|
|
let hello = require("../cpptest/hello.60");
|
|
|
|
let x = new hello.Hello({
|
|
counter : 55,
|
|
minus_clicked : (function() { console.log("Clicked!") }),
|
|
});
|
|
x.show();
|