widgets/editor: add lock property

This commit is contained in:
jean-emmanuel 2022-02-12 12:16:29 +01:00
parent fb223eb08c
commit 46ba4115af
10 changed files with 59 additions and 4 deletions

View file

@ -54,6 +54,7 @@ class Widget extends EventEmitter {
var defaults = {
widget: {
lock: {type: 'boolean', value: false, help: 'Set to `true` to prevent modifying this widget with the editor. This will not prevent deleting the widget or moving it from a container to another.'},
type: {type: 'string', value: 'auto', help: 'Widget type'},
id: {type: 'string', value: 'auto', help: 'Widgets sharing the same `id` will act as clones and update each other\'s value(s) without sending extra osc messages.' },
visible: {type: 'boolean', value: true, help: 'Set to `false` to hide the widget.'},