如何使用剑道UI的方法用于Angular 2的可排序组件?
该文档未提供任何具体示例。
为未来的用户回答。
进口:
import {SortableComponent} from '@progress/kendo-angular-sortable';
包括:
export class ComponentName implements OnInit {
@ViewChild('sortable') public sortable: SortableComponent;
...
}
呼叫:
public addDataItemFunction() {
this.sortable.addDataItem('1', 0);
}
"addDataItem"是方法。
元素:
<kendo-sortable #sortable ...></kendo-sortable>
希望这有帮助。