This event is dispatched to the widget element when there the special "Add" item at the end of the list is clicked. This item appears when the addItemLabel
property is defined in the widget's attributes or model, and a custom event name is used to give applications an easy way to identify the expected behavior.
Custom Event Fields
- model: The model object used to render the SmallList to which an item should be added.
- originalEvent: The original click Event object which caused this event to be dispatched. Useful for disambiguating changes if the list items contain multiple input fields.
- item: The item model to be added. Only defined for listAdd events resulting from a drag/drop from a different list.
- index: The index at which to add the new item. Only defined for listAdd events resulting from a drag/drop from a different list.
Supported Widgets
- Mojo.Widget.List
0 Comments