Events
The brixxApi Events are used to react to certain events. This way you can customize the behavior of the brixxbox to your own purpose. Some events will be raised before the brixxbox executes their own logic for this event. In that case, you can return 'true' to avoid the brixxbox built-in event. Otherwise, the brixxbox will do its own logic after your event.
Available Events
- onClick - When a control is clicked.
- onRowClick - When a grid row is clicked.
- onCellClick - When a grid cell is clicked.
- onChange - When a control content is changed.
- onRecordLoad - Before a Record is loaded.
- onRecordLoaded - After a Record is loaded.
- onRecordSave - Before a Record is saved.
- onRecordSaved - After a Record is saved.
- onRowSelectionChanged - After the selected row of a grid has changed.
- onRowCreated - Modify a grid row. Apply a color for the row based on its values for example.
- onRecordNew - After initializing the Form. The new Record is not saved yet but can be modified with initial values.
- onRecordDelete - Before a record is deleted.
- onRecordDeleted - After a record was deleted.
- onKeyPress - When a key is pressed.
- onKeyUp - When a key goes up.
- onKeyDown - When a key goes down.
- onModalClose - When a modal brixxbox app closes.
- onAppStart - When the app is started but before it is initialized.
- onAppInitialized - When the app is initialized (onAppStart has happened).
- onScan - When a code is scanned.
- onAttachmentsShow - Just before attachments panel opens.
- onFileImport - When a file is uploaded for import.
- onReturnFromModal - When a modal child app is closed, the parent will get this event.
- onMailHistoryShow - When the sidebar for the mail history opens.
- onSubDataRequest - When the subdatasource of a control is requested.
- onChildAppClosed - When a childapp of your app closes.
- onTabShown - Fires when a tab page is changing to visible.
- onAttachmentDeleted - Triggers when the user deletes an attachment in the sidebar.
- onAttachmentsHide - This event occurs when the attachment sidebar gets closed.
- onDataTransform - The event can be used to transform a datasource line to a calendar event.
- onEventClick - The event occurs the user clicks on one of the events.
- onEventChange - The event occurs the user moves or modifies an event.
- onTimeSelected - The event triggers when the users selects a time period in the calendar.