OnAction (GUI item event)

On most item types, called when the user clicks on a GUI item with the mouse.

On editDefs , this is called when the text changes.

On choiceDefs , this is called when the selected option changes.

Example(s)

onAction {
    ...
}