The Component object represents a single node of our template structure, so when you update its properties the changes are
immediatly reflected on the canvas and in the code to export (indeed, when you ask to export the code we just go through all
immediately reflected on the canvas and in the code to export (indeed, when you ask to export the code we just go through all
the tree of nodes).
An example on how to update properties:
@ -36,6 +36,7 @@ component.get('tagName');
will be hidden from the style manager. Default: `true`
- `stylable-require`**[Array][4]<[String][1]>?** Indicate an array of style properties to show up which has been marked as `toRequire`. Default: `[]`
- `unstylable`**[Array][4]<[String][1]>?** Indicate an array of style properties which should be hidden from the style manager. Default: `[]`
- `style-signature`**[Array][4]<[String][1]>?** This option comes handy when you need to remove or export strictly component-specific rules. Be default, if this option is not empty, the editor will remove rules when there are no components, of that type, in the canvas. Eg. '\['.navbar', '[navbar-']'. Default: `''`
- `highlightable`**[Boolean][3]?** It can be highlighted with 'dotted' borders if true. Default: `true`
- `copyable`**[Boolean][3]?** True if it's possible to clone the component. Default: `true`
- `resizable`**[Boolean][3]?** Indicates if it's possible to resize the component. It's also possible to pass an object as [options for the Resizer][5]. Default: `false`
@ -133,6 +134,7 @@ Update attributes of the component
- `styleManager:update:target` - The target (Component or CSSRule) is changed
- `styleManager:change` - Triggered on style property change from new selected component, the view of the property is passed as an argument to the callback
- `styleManager:change:{propertyName}` - As above but for a specific style property