mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-29 13:24:48 +00:00
13 lines
342 B
JavaScript
13 lines
342 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.counter--; }),
|
|
});
|
|
x.show();
|