|
|
|
@ -109,7 +109,7 @@ Get sector by id. |
|
|
|
### Parameters |
|
|
|
|
|
|
|
* `id` **[String][23]** Sector id |
|
|
|
* `opts` (optional, default `{}`) |
|
|
|
* `opts` **{warn: [boolean][26]?}** (optional, default `{}`) |
|
|
|
|
|
|
|
### Examples |
|
|
|
|
|
|
|
@ -197,7 +197,7 @@ Get the property. |
|
|
|
const property = styleManager.getProperty('mySector', 'min-height'); |
|
|
|
``` |
|
|
|
|
|
|
|
Returns **([Property] | null)** |
|
|
|
Returns **([Property] | [undefined][29])** |
|
|
|
|
|
|
|
## getProperties |
|
|
|
|
|
|
|
@ -213,7 +213,7 @@ Get all properties of the sector. |
|
|
|
const properties = styleManager.getProperties('mySector'); |
|
|
|
``` |
|
|
|
|
|
|
|
Returns **(Collection<[Property]> | null)** Collection of properties |
|
|
|
Returns **(Collection<[Property]> | [undefined][29])** Collection of properties |
|
|
|
|
|
|
|
## removeProperty |
|
|
|
|
|
|
|
@ -240,7 +240,7 @@ The target could be a Component, CSSRule, or a CSS selector string. |
|
|
|
### Parameters |
|
|
|
|
|
|
|
* `target` **([Component] | [CSSRule] | [String][23])** |
|
|
|
* `opts` (optional, default `{}`) |
|
|
|
* `opts` **{stylable: [boolean][26]?, component: Component?}** (optional, default `{}`) |
|
|
|
|
|
|
|
### Examples |
|
|
|
|
|
|
|
@ -386,7 +386,7 @@ Get all types |
|
|
|
|
|
|
|
Returns **[Array][27]** |
|
|
|
|
|
|
|
[1]: https://github.com/artf/grapesjs/blob/master/src/style_manager/config/config.js |
|
|
|
[1]: https://github.com/artf/grapesjs/blob/master/src/style_manager/config/config.ts |
|
|
|
|
|
|
|
[2]: #getconfig |
|
|
|
|
|
|
|
@ -441,3 +441,5 @@ Returns **[Array][27]** |
|
|
|
[27]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array |
|
|
|
|
|
|
|
[28]: property.html#properties |
|
|
|
|
|
|
|
[29]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined |
|
|
|
|