簡體   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