Your own components
Design a button once, place it often, change them all at once.
A component is a button you design once and place as often as you like. Change it, press Save, and every one you placed changes too, on every page and in every profile.
Making one. Open Composer and press New component: choose a name, whether it goes on a key, the window or a sensor, and what to start from. Or right-click a button you already have and choose Make it a component…. The button then becomes the first one placed. An action that draws itself can't become one.
The editor fills the window: layers and test values on the left, the component in the middle, and on the right the Design of the layer you picked (or of the whole component), its States, Properties and Behavior. The last is the action it runs, if any, with press modes, gestures and steps.
Placing it. Your components are at the top of the action list on the Deck page, under My components.
Properties are what may differ from button to button, such as a title, an icon or a color. Each has a name and a value it starts with. Use one in the component like this:
| Where | How |
|---|---|
| A text | {{props.title}} |
| A condition, a bar or a step's value | props.value >= 90 |
| A color or a setting of the action | Press the link beside it and pick a property that fits |
A placed button shows its properties as settings. One you leave alone follows the component, so a new
value under Starts as reaches it on Save; one you set keeps its own value, also when you rename the
property. A text property may hold live values: give one button {{system.cpu}} and another
{{system.memory}}.
Saving. Nothing on the deck changes while you edit. Ctrl+S saves, Ctrl+Z and Ctrl+Y undo and redo, and Discard goes back to what is saved. Unsaved changes are kept when you leave the editor or close Studio.
One that should differ. Select it on the deck and press Make a separate copy: it gets a component of its own. Deleting a component empties the buttons it is on.
An exported profile takes the components it uses along.