繁体   English   中英

Kendo UI Angular 2可排序方法

[英]Kendo UI Angular 2 Sortable Methods

如何将Kendo UI的方法用于Angular 2的Sortable组件?

该文档未提供任何具体示例。

为将来的用户作答。

导入

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>

希望这可以帮助。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM