Not sure exactly how to have it call the inverse of the value of the checkbox. Sorry, this is a very simple question but the documentation examples don’t go too in depth over usage of a simple jslink() call’
The challenge when using jscallback and similar is that there is not always a 1-1 correspondance between the javascript bokeh model properties and the Python Panel parameters.
Here the bokeh model has the property active which in this case has the value [] (not checked) or [0] (checked). The reason is technical. It works when extending to a group of check buttons.
How I found the solution
I added console.log(source, text); to the js code and inspected the objects.
I wish there was a 1-1 correspondence between the Python Panel parameters and the Bokeh JS properties. But there is currently not. This makes js linking harder than it should be.