Open patrick-steele-idem opened 11 years ago
Data can be attached to a widget by providing individual properties:
<ui:button w:data-database-id="data.databaseId" .../>
Or, data can be attached to a widget by providing a data object
The data is then attached to the widget and can be accessed using a special "data" property:
var myButtonWidget = this.getWidget("myButton"); var databaseId = myButtonWidget.data['database-id'];
NOTE: "data" now becomes a reserved property of widgets. Is that okay?
Open issues:
Data can be attached to a widget by providing individual properties:
Or, data can be attached to a widget by providing a data object
The data is then attached to the widget and can be accessed using a special "data" property:
NOTE: "data" now becomes a reserved property of widgets. Is that okay?
Open issues: