sencha touch SortableList 的使用
2014-05-23 14:49
197 查看
转: sencha touch 2.3 多了一个 SortableList plugin, 可实现 list item 的拖动交换
Ext.require('Ext.plugin.SortableList'); Ext.create('Ext.List', { fullscreen: true, // Set the class to the name you passed in for the handleSelector itemTpl: '<div class="gripper">{title}</div>', data: [ { title: 'Item 1' }, { title: 'Item 2' }, { title: 'Item 3' }, { title: 'Item 4' } ], // These are required to fix a bug that exists in the plugin infinite: true, variableHeights: true, plugins: [ { xclass: 'Ext.plugin.SortableList', handleSelector: '.gripper' } ], listeners: [ { event: 'dragsort', fn: function (listObject, row, to, from) { console.log(from + ' ' + to); }} ] });
相关文章推荐
- sencha touch :Ext.list 使用方法
- sencha touch :Ext.list 使用方法
- sencha touch list ListPaging使用详解
- Sencha Touch 2 官方文档翻译之 Using Views in your Applications(使用视图)
- Sencha Touch 2.0官方指南:如何使用数据视图
- sencha-touch 1.1 Picker控件使用
- Sencha Touch 2.0 组件:Carousels、List、TabPanel 之用法简介
- 视频: Sencha Touch - Intro to List Component
- Sencha Touch 2 官方文档翻译之 Using Device Profiles(使用设备配置)
- sencha-touch2.0 mvc中使用grid注意
- Sencha Touch 2.0官方指南:如何使用组件
- Sencha Touch 2.0 List实例
- sencha touch 高性能 list最简单高效的实现方案
- Sencha Touch 2 官方文档翻译之 Using Views in your Applications(使用视图)
- Sencha Touch 2 官方文档翻译之 Using Models(使用数据模型)
- Sencha Touch 2.0官方指南:如何使用"类"
- 如何使用sencha-touch控件显示平板上的tab界面
- 使用sencha-touch控件制作布局的平板电脑界面
- 使用 Sencha Touch 开发超炫的跨平台移动 Web 应用
- Sencha touch 开发中使用Jasmine 进行功能测试