- Want to know how to update generated view in nx.ui.Component object after some event occured. There is the component with button in attached .js file, when the button is clicked want to add new item into ul list. Tried to do the same way like in tutorial with click counter, but it doesn't work like expected. Is there any handler, event which should be fired or anything else how to insert another item into generated list when the model (in this case myItems) is changed.
Use the ObservableCollection as a data model for Component. When this object is used for component's model and the model is changed, the view of component is also updated.
So you can add items to list dynamically by pushing the button.
Please sign in to leave a comment.