Create a checkbox+dropdown list of checkbox

I finally got something digging the documentation :slight_smile:

I mirror what Crosselector do. I took advantage of CompositeWidget.

The dropdown is a Checkbox where I replace via CSS the appearance.
It was not so easy but I learn a lot aha.
:sweat_smile:

The only things I miss now is to inject directly the CSS for this widget. I use a Font awesome icon to replace it.

pn.extension(raw_css=[css], css_files=css_files)

Next step would be to have a “SuperComposit” :mechanical_arm: :mechanical_arm: :mechanical_arm:widget to embed the two TreeViewCheckBox or not…

Any suggestions for this appreciated.

I may do PR if interested.

2 Likes