How would I figure out the arguments of the jscallback function for some panel widgets?
I have a pn.widgets.CheckBox, and want to set some javascript to execute when
the checkbox is set/unset.
All I can figure out is that i need cb.jscallback( args={}, ??? )
Sorry, missed this. For all jscallbacks there is always a cb_obj in the arguments, which in this case represents the widget model. The Checkbox is actually a reduced case of a checkbox group so it has an active property, which represents the checked items and since there’s only one item active is either empty ([]) or contains a zero-index ([0]).
A callback that reports true or false therefore would look like this: