From 342b9dd7568772596cee190b734c7e15d3643269 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20=C5=A0t=C3=A1gl?= Date: Wed, 26 Jan 2022 03:04:54 +0100 Subject: [PATCH 1/4] Update Component.js --- src/dom_components/model/Component.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dom_components/model/Component.js b/src/dom_components/model/Component.js index 6a6caf87f..548c77deb 100644 --- a/src/dom_components/model/Component.js +++ b/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. `
`, `
`, etc. Default: `false` + * @property {Object} [style=''] Component related 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 ''. Default: `''` From 0156ccdff547ce7c99437dea547f47f47a963b40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20=C5=A0t=C3=A1gl?= Date: Wed, 26 Jan 2022 03:07:36 +0100 Subject: [PATCH 2/4] Update Component.js --- src/dom_components/model/Component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dom_components/model/Component.js b/src/dom_components/model/Component.js index 548c77deb..6a32a7409 100644 --- a/src/dom_components/model/Component.js +++ b/src/dom_components/model/Component.js @@ -75,7 +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. `
`, `
`, etc. Default: `false` - * @property {Object} [style=''] Component related style, eg. `{ width: '100px', height: '100px', 'background-color': red }` + * @property {Object} [style=''] Component related 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 ''. Default: `''` From 7980b9aa9fdb5b1347d62ad97a90ce6dadf62d35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20=C5=A0t=C3=A1gl?= Date: Wed, 26 Jan 2022 03:08:39 +0100 Subject: [PATCH 3/4] Update Component.js --- src/dom_components/model/Component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dom_components/model/Component.js b/src/dom_components/model/Component.js index 6a32a7409..05db32492 100644 --- a/src/dom_components/model/Component.js +++ b/src/dom_components/model/Component.js @@ -75,7 +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. `
`, `
`, etc. Default: `false` - * @property {Object} [style=''] Component related style, eg. `{ width: '100px', height: '100px', 'background-color': 'red' }` + * @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 ''. Default: `''` From 6c1ba3f030ff1eac33cc505e824fb0a07d0dd9cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20=C5=A0t=C3=A1gl?= Date: Wed, 26 Jan 2022 13:28:21 +0100 Subject: [PATCH 4/4] Update Component.js --- src/dom_components/model/Component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dom_components/model/Component.js b/src/dom_components/model/Component.js index 05db32492..4069b16c6 100644 --- a/src/dom_components/model/Component.js +++ b/src/dom_components/model/Component.js @@ -75,7 +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. `
`, `
`, etc. Default: `false` - * @property {Object} [style=''] Component default style, eg. `{ width: '100px', height: '100px', 'background-color': 'red' }` + * @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 ''. Default: `''`