zoukankan      html  css  js  c++  java
  • sencha touch 2制作滑动DataView(无缝list)

    Ext.define('App.view.Sections', {
        extend: 'Ext.dataview.DataView',
        xtype: 'sectionslist',
        id: 'mainlist',
    
        requires: [
            'App.store.Sections',
        ],
    
        config: {
            store:'Sections' ,
    
            //itemTpl: '<div>{name} is {id} years old</div>'
    
            //height: 205,
    
            scrollable: 'vertical',
    
            /*  inline: {
             wrap: false
             },*/
    
            //set the itemtpl to show the fields for the store
            itemTpl: '<div style="text-align: center"><img src="http://assets.en.oreilly.com/1/eventprovider/1/_@user_93485.jpg"><div>{name} {age}</div></div>',
            listeners: {
                itemtap: function(nestedList, list, index, target,record,e,eOpts) {
                    //var id = record.get('items');
                    alert('1');
    
    
                },
                activeitemchange:function(comp, activeRecord, oldRecord){
                    alert('2');
                }
            }
    
        }
    
    });

    效果:


  • 相关阅读:
    equals标准写法
    抽象类的概述
    多态的弊端
    多态
    final关键字
    java 静态代码块 构造块 构造方法
    java 工具类
    逻辑运算符&&和&的区别 ||和|的区别
    react-route
    跨域
  • 原文地址:https://www.cnblogs.com/fyq891014/p/3294769.html
Copyright © 2011-2022 走看看