From e63069b9ae5efe88ba13ef6b311b2523765743fe Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Sat, 27 Apr 2019 00:47:41 +0200 Subject: [PATCH] state widget: don't hide value prop, add docs --- src/client/app/widgets/switchers/state.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/client/app/widgets/switchers/state.js b/src/client/app/widgets/switchers/state.js index 9eb25ce4..698371bb 100644 --- a/src/client/app/widgets/switchers/state.js +++ b/src/client/app/widgets/switchers/state.js @@ -31,7 +31,14 @@ class State extends Widget { loadLabel: {type: 'string', value: 'Load', help: 'Label for load button'}, horizontal: {type: 'boolean', value: false, help: 'Set to `true` to display buttons horizontally'}, - }, ['_value', 'default', 'value']) + }, [], { + + value: {type: 'string|object', value: '', help: [ + '- `string`: `"save"` or `"load"`', + '- `object`: `"widget_id": VALUE` pairs', + ]} + + }) }