Schedule Table
The Schedule Table component allows users to view and manage schedules. It provides a tabular interface for scheduling with capabilities to create, edit, and delete schedule entries depending on configuration settings.
Parameters
action
String / Object
Yes
token
String
Authentication token to authorize the component.
Yes
settings
Object
No
arguments
Array
JSON object containing additional arguments for the Schedule Table component.
No
Actions
initialize
Initializes the component.
updateSettings
Updates the component's settings.
Configuration Settings
allowCreate
boolean
Enables UI elements for creating new schedule entries.
true
allowEdit
boolean
Enables UI elements for editing existing schedule entries.
true
allowDelete
boolean
Enables UI elements for deleting schedule entries.
false
Initialize
To load the Schedule Table component in your application, you need to embed the component's iframe in your HTML. The iframe's src
attribute should be set to https://api.recrubo.app/public/v2/embed/component/schedule-table
.
Example
Events
The Schedule Table component triggers events that your application can listen for and handle appropriately.
Created Event
The created
event is triggered when a new schedule entry is created. This event provides the ID of the newly created schedule.
Example of handling the event
All events from the Schedule Table component will include a component
field with the value 'scheduleTable' and an event
field specifying the type of event (e.g., 'created').
Last updated