##// END OF EJS Templates
fixed strict mode @bind decorator
fixed strict mode @bind decorator

File last commit:

r28:b88fac0e76c0 v1.0.0-rc13 default
r28:b88fac0e76c0 v1.0.0-rc13 default
Show More
MyWidget.tsx
22 lines | 443 B | text/x-typescript | TypeScriptLexer
cin
fixed strict mode @bind decorator
r28 import { djbase, djclass, bind, prototype } from "../declare";
import { DjxWidgetBase } from "../tsx/DjxWidgetBase";
import { createElement } from "../tsx";
@djclass
export class MyWidget extends djbase(DjxWidgetBase) {
@bind({node: "titleNode", type:"innerHTML"})
title = "";
@prototype()
counter = 0;
render() {
return <div>
<h1 data-dojo-attach-point="titleNode"></h1>
</div>;
}
}