From eae79e51d69572c6b5526325a2e08795b62b5ae6 Mon Sep 17 00:00:00 2001 From: bordun Date: Thu, 26 Mar 2020 14:20:06 +0100 Subject: [PATCH] colorPanel: missing in some widgets + description --- src/client/widgets/containers/matrix.js | 1 + src/client/widgets/containers/modal.js | 2 +- src/client/widgets/containers/panel.js | 2 +- src/client/widgets/containers/root.js | 2 +- src/client/widgets/containers/tab.js | 1 + 5 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/client/widgets/containers/matrix.js b/src/client/widgets/containers/matrix.js index ee478cac..68fabd81 100644 --- a/src/client/widgets/containers/matrix.js +++ b/src/client/widgets/containers/matrix.js @@ -20,6 +20,7 @@ class Matrix extends StaticProperties(Panel, {scroll: false}) { _matrix: 'matrix', widgetType: {type: 'string', value: 'button', help: 'Defines the type of the widgets in the matrix'}, + colorPanel: {type: 'string', value: 'auto', help: 'Panel background color. Set to "auto" to inherit from parent widget.'}, layout: {type: 'string', value: 'horizontal', choices: ['horizontal', 'vertical', 'grid'], help: 'Defines how children are laid out.'}, gridTemplate: {type: 'string|number', value: '', help:'If `layout` is `grid`, can be either a number of columns of a value css grid-template definition.'}, quantity: {type: 'number', value: 4, help: 'Defines the number of widgets in the matrix'}, diff --git a/src/client/widgets/containers/modal.js b/src/client/widgets/containers/modal.js index 0431beed..aff54a5a 100644 --- a/src/client/widgets/containers/modal.js +++ b/src/client/widgets/containers/modal.js @@ -26,7 +26,7 @@ class Modal extends Panel { popupHeight: {type: 'number|percentage', value: '80%', help: 'Modal popup\'s size'}, popupLeft: {type: 'number|percentage', value: 'auto', help: 'Modal popup\'s position'}, popupTop: {type: 'number|percentage', value: 'auto', help: 'Modal popup\'s position'}, - colorPanel: {type: 'string', value: 'auto', help:''}, + colorPanel: {type: 'string', value: 'auto', help: 'Panel background color. Set to "auto" to inherit from parent widget.'}, layout: {type: 'string', value: 'default', choices: ['default', 'vertical', 'horizontal', 'grid'], help: 'Defines how children are laid out.'}, gridTemplate: {type: 'string|number', value: '', help:'If `layout` is `grid`, can be either a number of columns of a value css grid-template definition.'}, traversing: {type: 'boolean', value: false, help: 'Set to `true` to enable traversing gestures in this widget. Set to `smart` or `auto` to limit affected widgets by the type of the first touched widget'}, diff --git a/src/client/widgets/containers/panel.js b/src/client/widgets/containers/panel.js index 5bbbaff6..e094eff2 100644 --- a/src/client/widgets/containers/panel.js +++ b/src/client/widgets/containers/panel.js @@ -19,7 +19,7 @@ class Panel extends Container() { _panel:'panel', - colorPanel: {type: 'string', value: 'auto', help:''}, + colorPanel: {type: 'string', value: 'auto', help: 'Panel background color. Set to "auto" to inherit from parent widget.'}, layout: {type: 'string', value: 'default', choices: ['default', 'vertical', 'horizontal', 'grid'], help:'Defines how children are laid out.'}, justify: {type: 'string', value: 'start', choices: ['start', 'end', 'center', 'space-around', 'space-between'], help:'If `layout` is `vertical` or `horizontal`, defines how widgets should be justified.'}, gridTemplate: {type: 'string|number', value: '', help:'If `layout` is `grid`, can be either a number of columns of a value css grid-template definition.'}, diff --git a/src/client/widgets/containers/root.js b/src/client/widgets/containers/root.js index f17152bb..23d0b47e 100644 --- a/src/client/widgets/containers/root.js +++ b/src/client/widgets/containers/root.js @@ -17,7 +17,7 @@ class Root extends StaticProperties(Panel, {visible: true, label: false, id: 'ro _panel:'panel', - colorPanel: {type: 'string', value: 'auto', help:''}, + colorPanel: {type: 'string', value: 'auto', help: 'Panel background color. Set to "auto" to inherit from parent widget.'}, layout: {type: 'string', value: 'default', choices: ['default', 'vertical', 'horizontal', 'grid'], help:'Defines how children are laid out.'}, justify: {type: 'string', value: 'start', choices: ['start', 'end', 'center', 'space-around', 'space-between'], help:'If `layout` is `vertical` or `horizontal`, defines how widgets should be justified.'}, gridTemplate: {type: 'string|number', value: '', help:'If `layout` is `grid`, can be either a number of columns of a value css grid-template definition.'}, diff --git a/src/client/widgets/containers/tab.js b/src/client/widgets/containers/tab.js index e74e422e..ea2b8f2d 100644 --- a/src/client/widgets/containers/tab.js +++ b/src/client/widgets/containers/tab.js @@ -17,6 +17,7 @@ module.exports = class Tab extends Panel { _tab:'tab', // detached: {type: 'boolean', value: true, help: 'Set to `false` if the tab contains `frame` widgets that should not be reloaded when the tab opens'}, + colorPanel: {type: 'string', value: 'auto', help: 'Panel background color. Set to "auto" to inherit from parent widget.'}, layout: {type: 'string', value: 'default', choices: ['default', 'vertical', 'horizontal', 'grid'], help:'Defines how children are laid out.'}, justify: {type: 'string', value: 'start', choices: ['start', 'end', 'center', 'space-around', 'space-between'], help:'If `layout` is `vertical` or `horizontal`, defines how widgets should be justified.'}, gridTemplate: {type: 'string|number', value: '', help:'If `layout` is `grid`, can be either a number of columns of a value css grid-template definition.'},