Skip to content

Add silent writes, presets: false and persist: false - #151

Merged
ryankiley merged 1 commit into
mainfrom
ryan/panel-options
Oct 12, 2026
Merged

ryankiley merged 1 commit into
mainfrom
ryan/panel-options

Conversation

@ryankiley

@ryankiley ryankiley commented Oct 12, 2026 •

Copy link
Copy Markdown
Owner

Three options a host needs once a panel is part of an app: { silent: true } on set, setMany and fromJSON (no on() echo; conditionals, persistence and undo still run), presets: false (persistence without the Presets menu), and a control's persist: false (left out of the saved session). A folder that should start closed already has a way, fromJSON({ ui: { folders: { shadow: true } } }), now documented on the Panel API page in place of a separate collapsed option. Covered by test/panel-options.

@ryankiley ryankiley changed the title Add silent writes, presets: false, persist: false and collapsed Add silent writes, presets: false and persist: false Oct 12, 2026
Three options a host needs once a panel is part of an app. { silent: true } on set, setMany and fromJSON skips the on() listeners, so a mirrored change doesn't echo back, while conditionals, persistence and undo still run. presets: false keeps persistence without the Presets menu, and a control's persist: false leaves it out of the saved session. A folder that should start closed already has a way, fromJSON({ ui: { folders: { shadow: true } } }), now documented on the Panel API page. test/panel-options covers it.
@ryankiley
ryankiley merged commit 7c25090 into main Oct 12, 2026
2 checks passed
@ryankiley
ryankiley deleted the ryan/panel-options branch October 12, 2026 01:09
@ryankiley ryankiley mentioned this pull request Oct 12, 2026
ryankiley added a commit that referenced this pull request Oct 12, 2026
Carries the slider's format and parse (#150) and the panel's silent writes, presets: false and persist: false (#151). All additive or fixes, so a patch: hosts on ^0.4.0 pick it up as is.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant