Add a new item to the specified widget, where applicable.
Syntax |
addItem(string name, uint parentId=0, uint prevId=0): uint |
---|---|
name |
Target widget name |
parentId |
Parent item ID (0=none) |
prevId |
Previous item ID (0=default) |
Result |
Return new item ID, or 0 otherwise |