Tray

Create a tray icon
Add a badge
intent: "alert" | "info" | "warning" | "success"
Rendering content
The state is a mechanism to keep track of variable data over time, enabling components to re-render automatically when the data changes.
The render() function is used to define how content should be presented in the tray popover. It takes a callback function that returns a tree of components.
Components, like tray.text and tray.button, are reusable building blocks of the UI, each responsible for rendering a piece of the interface according to the current state.
The tray will be re-rendered anytime there is a state change even if the state isn't in the render function.
Tray events
Event handlers
You can register functions to specific event triggers like onClick using ctx.registerEventHandler() in order to define custom behaviors based on user action.
Tips
You can register inline event handlers. Make sure the first argument is unique to that element.
Layout components
Fields/Forms
Field components:
input
button
select
radioGroup
checkbox
switch
Use ctx.fieldRef to get and set a field's value synchronously.
Select, RadioGroup
You can create forms easily with ctx.fieldRef and the available field components.
Checkbox, Switch
Last updated