I try to make handler based on active button in Bokeh CheckboxButtonGroup. This is my Button Group.
LABELS = ["Name", "Date", "Volume", "Percentage Change"]
checkbox_button_group = CheckboxButtonGroup(labels=LABELS, active=[0, 1])
checkbox_button_group.js_on_click(CustomJS(code="""
console.log('checkbox_button_group: active=' + this.active, this.toString())
"""))
I want to make my handler function return selected button, can anyone help me to solve this?