Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
A version of CheckboxBar which includes a “Select all” checkbox
ResourceFunction["CheckboxBarSelectAll"][Dynamic[x],{val1,val2,,…}] takes the setting to be the dynamically-updated current value of x, with possible values {val1,val2,,…} and the value x being reset every time a checkbox is clicked. | |
ResourceFunction["CheckboxBarSelectAll"][x,{val1→lbl1,val2→lbl2,…}] represents a checkbox bar in which the checkbox associated with value vali has label lbli. |
ControlPlacement | Top | where to place the "Select all" checkbox |
"Label" | "Select all" | the text to label the "Select all" checkbox with |
A selector for three possible values:
In[1]:= |
Out[1]= |
A selector for three possible labeled values:
In[2]:= |
Out[2]= |
Using ControlPlacement with values Left, Right, Top or Bottom places the "Select all" checkbox:
In[3]:= |
Out[3]= |
The "Select all" checkbox label can be changed with "Label":
In[4]:= |
Out[4]= |
All options of CheckboxBar are supported:
In[5]:= |
Out[5]= |
This work is licensed under a Creative Commons Attribution 4.0 International License