我有一个json。 Json的基本结构是=>
{
"parent1", child:["child1", "child2"],
"parent2", child:["child1", "child2"]
}
kendo图的布局有类型:“树”。 目前我有parent1和parent2具有相同的子类型:“right”如下。
|-->child1 |-->child1
parent1--| parent2--|
|-->child2 |-->child2
我需要将parent1的布局设置为子类型:“right”,将parent2设置为子类型:“left”,如下图所示。
|-->child1 child1<--|
parent1--| |--parent2
|-->child2 child2<--|
有没有办法解决这个问题?如果是,请帮助。谢谢!