mirror of https://github.com/artf/grapesjs.git
Browse Source
This feature allows you to customize the boolean attribute on components
Example
```js
traits: [{
type: 'checkbox',
label: 'Show Name',
name: 'show-name',
valueTrue: 'TRUE-value',
valueFalse: 'FALSE-value',
// For default values you have to specify same true/false values
// You can add `value` in trait or on your components
value: 'FALSE-value',
}]
```
pull/1518/head
1 changed files with 27 additions and 4 deletions
Loading…
Reference in new issue