I´d like to create a tree mixing radio and checkbox .... The first section will use radio (to select just one Base layer in my map) and the others sections will use checkbox (to select any layers to show up)

Is it posible to do that with dynatree? Image attached...

Tree sample

有帮助吗?

解决方案

Checkboxes and Radioboxes are simply CSS styled <span> tags, so you can add your own CSS that overrides this based on some custom node classes. You should then use selectMode: 2, and implement the desired behavior in the onSelect handler.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top