Browse Source

Merge pull request #4103 from lofcz/patch-1

Document component->style
pull/4105/head
Artur Arseniev 4 years ago
committed by GitHub
parent
commit
a3dd1a56f0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/dom_components/model/Component.js

1
src/dom_components/model/Component.js

@ -75,6 +75,7 @@ export const keyUpdateInside = `${keyUpdate}-inside`;
* @property {Boolean} [selectable=true] Allow component to be selected when clicked. Default: `true`
* @property {Boolean} [hoverable=true] Shows a highlight outline when hovering on the element if `true`. Default: `true`
* @property {Boolean} [void=false] This property is used by the HTML exporter as void elements don't have closing tags, eg. `<br/>`, `<hr/>`, etc. Default: `false`
* @property {Object} [style={}] Component default style, eg. `{ width: '100px', height: '100px', 'background-color': 'red' }`
* @property {String} [styles=''] Component related styles, eg. `.my-component-class { color: red }`
* @property {String} [content=''] Content of the component (not escaped) which will be appended before children rendering. Default: `''`
* @property {String} [icon=''] Component's icon, this string will be inserted before the name (in Layers and badge), eg. it can be an HTML string '<i class="fa fa-square-o"></i>'. Default: `''`

Loading…
Cancel
Save