brixxbox Wiki
Ask or search…
K

triggerEvent

Triggers an events for a control, or the brixxbox app itself. Some events are on brixxbox App level (like e.g. onRecordSaved ). Other events are on control level (like e.g. onClick)

Example Usages

brixxApi.triggerEvent("click", "myButton"); //This triggers a button Click for the control "myButton"
brixxApi.triggerEvent("recordSaved"); //This triggers the event, that would otherwise occur if a record was saved
You can use the whole event name with the "on" prefix as well
brixxApi.triggerEvent("onClick", "myButton"); //This triggers a button Click for the control "myButton"
brixxApi.triggerEvent("onRecordSaved"); //This triggers the event, that would otherwise occur if a record was saved