我目前正在使用Angular UI Tree。
我的目标是:
[
{
"id": 1,
"title": "class1",
"students": [
{
"id": 11,
"title": "student1.1",
},
{
"id": 12,
"title": "student1.2"
}
]
},
{
"id": 2,
"title": "class2",
"students": []
},
{
"id": 3,
"title": "class3",
"students": [
{
"id": 31,
"title": "student3.1"
}
]
}
]
我希望实现的目标是允许学生在班级内进行拖放操作(班级不一定可拖动,学生也不必仅被拖放到第一级(班级),而是可以被拖放到第二级(学生))。
使用Angular UI Tree是否能够实现这个目标?