Append a command item.
If item.id is 0 a unique id is generated. A heap copy of the item is stored (so its onClicked survives) and returned for later wiring.
See Implementation
Append a command item.
If item.id is 0 a unique id is generated. A heap copy of the item is stored (so its onClicked survives) and returned for later wiring.