Custom Components
Making custom components right in your workspace
Last updated
Was this helpful?
Making custom components right in your workspace
Last updated
Was this helpful?
You can define a custom component by writing your own user interface code in HTML and javascript right in the workspace. There are two types of custom components:
- This is a simple custom component that has a programmable display. This is convenient for things like output elements, like charts, or for action elements, like a modal dialog.
- This is similar to the custom component except it stores a data value. Interacting with the programmable display shows the save bar. Pressing save updates the stored value in the component. This is convenient for creating an object like a plain data table but with a custom display.
Both these components use a UI Generator object. This is how we define the user interface for our component. It contains the functions below (all of which are optional). This can be used as a reference for the tutorials on the different custom components that follow.
An important note is that when we code this object, in the view marked uiGenerator(), we can not access the other tables as we can from most of the other code views. That is because this code is not part of our model. This is just UI code.
We can however pass data into the UI. This will be done with the setData method on this object. The data passed to this function will be the output of the function we define in the view called input code, which is the equivelant to the formula in a plain Data Table.
The admin object passed as an argument has the following utility functions, to be used in the user defined functions above.
For more information, see the programming guide for .