# Sector
# Properties
id
String (opens new window) Sector id, eg.typography
name
String (opens new window) Sector name, eg.Typography
open
Boolean (opens new window)? Indicates the open state.properties
Array (opens new window)<Object (opens new window)>? Indicate an array of Property defintions.
# getId
Get sector id.
Returns String (opens new window)
# getName
Get sector name.
Returns String (opens new window)
# setName
Update sector name.
# Parameters
value
String (opens new window) New sector name
# isOpen
Check if the sector is open
Returns Boolean (opens new window)
# setOpen
Update Sector open state
# Parameters
# isVisible
Check if the sector is visible
Returns Boolean (opens new window)
# getProperties
Get sector properties.
# Parameters
opts
Object (opens new window) Options (optional, default{}
)opts.withValue
Boolean (opens new window) Get only properties with value (optional, defaultfalse
)opts.withParentValue
Boolean (opens new window) Get only properties with parent value (optional, defaultfalse
)
Returns Array (opens new window)<Property>