slint/examples/nodetest/main.js
Olivier Goffart 49d2aec7e2 Node: add possibility to add signal handler
Right now, this only works once and then panic the second time
2020-06-04 12:49:33 +02:00

18 lines
330 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();