-
Notifications
You must be signed in to change notification settings - Fork 0
List
wenbobao edited this page Oct 12, 2017
·
1 revision
列表在几乎任何移动应用中都是一个广泛使用的界面元素,可以包括从基本文本到按钮、切换、图标和缩略图等内容。
包含项目的列表和列表项本身都可以是任何HTML元素。
使用列表和项目组件可以很容易地支持各种交互模式,如滑动、编辑、拖拽和删除项目。
closeSlidingItems() // 关闭任何打开的滑动项。
| 属性 | 类型 | 详解 |
|---|---|---|
| sliding | boolean | 如果正确,滑动项将启用。 |
import { Component, ViewChild } from '@angular/core';
import { List } from 'ionic-angular';
@Component({...})
export class MyClass {
@ViewChild(List) list: List;
constructor() { }
stopSliding() {
this.list.enableSlidingItems(false);
}
}