Skip to content

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 ​

ParameterTypeDescription
wandWand<C>The wand that owns the configuration.

Returns ​

PanelModel

The panel model. The theme group is always the first group.

Example ​

ts
const model = panelModel(wand);
model.set('chalk.size', 20);