Function: panelModel()
ts
function panelModel<C>(wand): PanelModel;Defined in: panel/model.ts:158
Convert the configuration of a wand to groups and controls for a settings panel.
Type Parameters
| Type Parameter |
|---|
C |
Parameters
| Parameter | Type | Description |
|---|---|---|
wand | Wand<C> | The wand that owns the configuration. |
Returns
The panel model. The theme group is always the first group.
Example
ts
const model = panelModel(wand);
model.set('chalk.size', 20);