mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 05:44:52 +00:00
Node: Allow to init properties to value
This commit is contained in:
parent
30d61452ba
commit
5ee09398e8
5 changed files with 58 additions and 8 deletions
|
@ -3,10 +3,9 @@ native = require('../native/index.node');
|
|||
|
||||
require.extensions['.60'] = function (module, filename) {
|
||||
var c = native.load(filename);
|
||||
module.exports["show"] = function () {
|
||||
c.create().show();
|
||||
module.exports[c.name()] = function (init_properties) {
|
||||
return c.create(init_properties);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
module.exports = native;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue