state widget: don't hide value prop, add docs

This commit is contained in:
jean-emmanuel 2019-04-27 00:47:41 +02:00
parent 9bed4282f3
commit e63069b9ae

View file

@ -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',
]}
})
}