Manual way to change checkboxes, or when disabling checkboxes, set checkboxes to false/unchecked

This issue has been tracked since 2023-02-19.

I'm currently using a checkbox (A) which, when clicked, would "disable" a panel (B) of other checkboxes.

For this, it would be useful to be able to set all the checkboxes in panel B to false/unchecked when B is disabled. Right now, when I disable B, all the checkboxes in B stay checked. Thus, when B is re-enabled, I would have to manually uncheck the boxes for them to "reset".

My apologies if there's already a feature that does this somewhere that I've missed - I'd appreciate any help! (Also, let me know if this wasn't a clear enough explanation - I can provide further clarification or screenshots if needed).

cocopon wrote this answer on 2023-02-20

Thank you for using Tweakpane. How about using importing/exporting a preset to disable multiple checkboxes?

  1. Get a preset via exportPreset()
  2. Set all checkbox values of the preset to false
  3. Apply changes by passing the modified preset to importPreset()

Document:
https://cocopon.github.io/tweakpane/misc/#imex

cocopon wrote this answer on 2023-02-24

Feel free to reopen the issue if you have any updates.

More Details About Repo
Owner Name cocopon
Repo Name tweakpane
Full Name cocopon/tweakpane
Language TypeScript
Created Date 2016-05-10
Updated Date 2023-03-17
Star Count 2603
Watcher Count 19
Fork Count 71
Issue Count 11

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date