-
Notifications
You must be signed in to change notification settings - Fork 351
Creating a widget
Nako Sung edited this page Jan 8, 2016
·
1 revision
class TestWidget extends JavascriptWidget {
ctor() {
this.Test = _ => console.log("default delegate")
}
AddChild(x) {
this.SetRootWidget(x)
return {}
}
OnMouseMove() {
this.Test()
}
}
let TestWidget_C = require('uclass')()(global,TestWidget)
let UMG = require('UMG')
function controller(scope) {
scope.test_func = (arg) => console.log('hello from jade',arg)
}
let page = UMG.app(design,controller)
...
TestWidget(fn.Test="test_func(1)")
div Hello Test