mirror of https://github.com/artf/grapesjs.git
9 changed files with 245 additions and 22 deletions
@ -0,0 +1,60 @@ |
|||
<!-- Generated by documentation.js. Update this documentation by updating the source code. --> |
|||
|
|||
## Sector |
|||
|
|||
|
|||
|
|||
### Properties |
|||
|
|||
* `id` **[String][1]** Sector id, eg. `typography` |
|||
* `name` **[String][1]** Sector name, eg. `Typography` |
|||
* `open` **[Boolean][2]?** Indicates the open state. |
|||
* `properties` **[Array][3]<[Object][4]>?** Indicate an array of Property defintions[Property]: property.html |
|||
|
|||
### getId |
|||
|
|||
Get sector id. |
|||
|
|||
Returns **[String][1]** |
|||
|
|||
### getName |
|||
|
|||
Get sector name. |
|||
|
|||
Returns **[String][1]** |
|||
|
|||
### setName |
|||
|
|||
Update sector name. |
|||
|
|||
#### Parameters |
|||
|
|||
* `value` **[String][1]** New sector name |
|||
|
|||
### isOpen |
|||
|
|||
Check if the sector is open |
|||
|
|||
Returns **[Boolean][2]** |
|||
|
|||
### setOpen |
|||
|
|||
Update Sector open state |
|||
|
|||
#### Parameters |
|||
|
|||
* `value` **[Boolean][2]** |
|||
|
|||
### getProperties |
|||
|
|||
Get sector properties. |
|||
|
|||
Returns **[Array][3]<[Property]>** |
|||
|
|||
[1]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String |
|||
|
|||
[2]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean |
|||
|
|||
[3]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array |
|||
|
|||
[4]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object |
|||
Loading…
Reference in new issue