Как сделать стол с treeviewcheckbox
У меня есть TreeView элемент - https://jsfiddle.net/allengosta/9pg13kth/11/ и я хочу сделать treetable (первая колонка - дерево, вторая колонка - цвет), как:
Как это сделать?
//json example
var treeObject = [
{
text:"Parent 1",
checked:true,
id:15,
color: 'blue',
children:[ // Required
{ text:"Child 1", checked:true, color: 'white'},
{ text:"Child 2", color: 'green' }
]
},
{
text:"Parent 2",
color: 'yellow',
children:[
{
text:"Parent 3",
color: 'purple',
children:[
{text:"Child 3",checked:true, color: 'green'},
{text:"Child 4", color: 'orange'}
]
}
]
}
]
+2

0 ответов
Похожие вопросы
Посмотрите другие вопросы по меткам javascript html