亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? dataview.js

?? ext-2.3.0
?? JS
?? 第 1 頁 / 共 2 頁
字號:
/*
 * Ext JS Library 2.3.0
 * Copyright(c) 2006-2009, Ext JS, LLC.
 * licensing@extjs.com
 * 
 * http://extjs.com/license
 */

/** * @class Ext.DataView * @extends Ext.BoxComponent * A mechanism for displaying data using custom layout templates and formatting. DataView uses an {@link Ext.XTemplate} * as its internal templating mechanism, and is bound to an {@link Ext.data.Store} * so that as the data in the store changes the view is automatically updated to reflect the changes.  The view also * provides built-in behavior for many common events that can occur for its contained items including click, doubleclick, * mouseover, mouseout, etc. as well as a built-in selection model. <b>In order to use these features, an {@link #itemSelector} * config must be provided for the DataView to determine what nodes it will be working with.</b> * * <p>The example below binds a DataView to a {@link Ext.data.Store} and renders it into an {@link Ext.Panel}.</p> * <pre><code>var store = new Ext.data.JsonStore({    url: 'get-images.php',    root: 'images',    fields: [        'name', 'url',        {name:'size', type: 'float'},        {name:'lastmod', type:'date', dateFormat:'timestamp'}    ]});store.load();var tpl = new Ext.XTemplate(    '&lt;tpl for="."&gt;',        '&lt;div class="thumb-wrap" id="{name}"&gt;',        '&lt;div class="thumb"&gt;&lt;img src="{url}" title="{name}"&gt;&lt;/div&gt;',        '&lt;span class="x-editable"&gt;{shortName}&lt;/span&gt;&lt;/div&gt;',    '&lt;/tpl&gt;',    '&lt;div class="x-clear"&gt;&lt;/div&gt;');var panel = new Ext.Panel({    id:'images-view',    frame:true,    width:535,    autoHeight:true,    collapsible:true,    layout:'fit',    title:'Simple DataView',    items: new Ext.DataView({        store: store,        tpl: tpl,        autoHeight:true,        multiSelect: true,        overClass:'x-view-over',        itemSelector:'div.thumb-wrap',        emptyText: 'No images to display'    })});panel.render(document.body);</code></pre> * @constructor * Create a new DataView * @param {Object} config The config object */Ext.DataView = Ext.extend(Ext.BoxComponent, {    /**     * @cfg {String/Array} tpl     * The HTML fragment or an array of fragments that will make up the template used by this DataView.  This should     * be specified in the same format expected by the constructor of {@link Ext.XTemplate}.     */    /**     * @cfg {Ext.data.Store} store     * The {@link Ext.data.Store} to bind this DataView to.     */    /**     * @cfg {String} itemSelector     * <b>This is a required setting</b>. A simple CSS selector (e.g. div.some-class or span:first-child) that will be      * used to determine what nodes this DataView will be working with.     */    /**     * @cfg {Boolean} multiSelect     * True to allow selection of more than one item at a time, false to allow selection of only a single item     * at a time or no selection at all, depending on the value of {@link #singleSelect} (defaults to false).     */    /**     * @cfg {Boolean} singleSelect     * True to allow selection of exactly one item at a time, false to allow no selection at all (defaults to false).     * Note that if {@link #multiSelect} = true, this value will be ignored.     */    /**     * @cfg {Boolean} simpleSelect     * True to enable multiselection by clicking on multiple items without requiring the user to hold Shift or Ctrl,     * false to force the user to hold Ctrl or Shift to select more than on item (defaults to false).     */    /**     * @cfg {String} overClass     * A CSS class to apply to each item in the view on mouseover (defaults to undefined).     */    /**     * @cfg {String} loadingText     * A string to display during data load operations (defaults to undefined).  If specified, this text will be     * displayed in a loading div and the view's contents will be cleared while loading, otherwise the view's     * contents will continue to display normally until the new data is loaded and the contents are replaced.     */    /**     * @cfg {String} selectedClass     * A CSS class to apply to each selected item in the view (defaults to 'x-view-selected').     */    selectedClass : "x-view-selected",    /**     * @cfg {String} emptyText     * The text to display in the view when there is no data to display (defaults to '').     */    emptyText : "",    /**     * @cfg {Boolean} deferEmptyText True to defer emptyText being applied until the store's first load     */    deferEmptyText: true,    /**     * @cfg {Boolean} trackOver True to enable mouseenter and mouseleave events     */    trackOver: false,    //private    last: false,    // private    initComponent : function(){        Ext.DataView.superclass.initComponent.call(this);        if(typeof this.tpl == "string" || Ext.isArray(this.tpl)){            this.tpl = new Ext.XTemplate(this.tpl);        }        this.addEvents(            /**             * @event beforeclick             * Fires before a click is processed. Returns false to cancel the default action.             * @param {Ext.DataView} this             * @param {Number} index The index of the target node             * @param {HTMLElement} node The target node             * @param {Ext.EventObject} e The raw event object             */            "beforeclick",            /**             * @event click             * Fires when a template node is clicked.             * @param {Ext.DataView} this             * @param {Number} index The index of the target node             * @param {HTMLElement} node The target node             * @param {Ext.EventObject} e The raw event object             */            "click",            /**             * @event mouseenter             * Fires when the mouse enters a template node. trackOver:true or an overCls must be set to enable this event.             * @param {Ext.DataView} this             * @param {Number} index The index of the target node             * @param {HTMLElement} node The target node             * @param {Ext.EventObject} e The raw event object             */            "mouseenter",            /**             * @event mouseleave             * Fires when the mouse leaves a template node. trackOver:true or an overCls must be set to enable this event.             * @param {Ext.DataView} this             * @param {Number} index The index of the target node             * @param {HTMLElement} node The target node             * @param {Ext.EventObject} e The raw event object             */            "mouseleave",            /**             * @event containerclick             * Fires when a click occurs and it is not on a template node.             * @param {Ext.DataView} this             * @param {Ext.EventObject} e The raw event object             */            "containerclick",            /**             * @event dblclick             * Fires when a template node is double clicked.             * @param {Ext.DataView} this             * @param {Number} index The index of the target node             * @param {HTMLElement} node The target node             * @param {Ext.EventObject} e The raw event object             */            "dblclick",            /**             * @event contextmenu             * Fires when a template node is right clicked.             * @param {Ext.DataView} this             * @param {Number} index The index of the target node             * @param {HTMLElement} node The target node             * @param {Ext.EventObject} e The raw event object             */            "contextmenu",            /**             * @event selectionchange             * Fires when the selected nodes change.             * @param {Ext.DataView} this             * @param {Array} selections Array of the selected nodes             */            "selectionchange",            /**             * @event beforeselect             * Fires before a selection is made. If any handlers return false, the selection is cancelled.             * @param {Ext.DataView} this             * @param {HTMLElement} node The node to be selected             * @param {Array} selections Array of currently selected nodes             */            "beforeselect"        );        this.all = new Ext.CompositeElementLite();        this.selected = new Ext.CompositeElementLite();    },    // private    onRender : function(){        if(!this.el){            this.el = document.createElement('div');            this.el.id = this.id;        }        Ext.DataView.superclass.onRender.apply(this, arguments);    },    // private    afterRender : function(){        Ext.DataView.superclass.afterRender.call(this);        this.el.on({            "click": this.onClick,            "dblclick": this.onDblClick,            "contextmenu": this.onContextMenu,            scope:this        });        if(this.overClass || this.trackOver){            this.el.on({                "mouseover": this.onMouseOver,                "mouseout": this.onMouseOut,                scope:this            });        }        if(this.store){            this.setStore(this.store, true);        }    },    /**     * Refreshes the view by reloading the data from the store and re-rendering the template.     */    refresh : function(){        this.clearSelections(false, true);        this.el.update("");        var records = this.store.getRange();        if(records.length < 1){            if(!this.deferEmptyText || this.hasSkippedEmptyText){                this.el.update(this.emptyText);            }            this.all.clear();        }else{            this.tpl.overwrite(this.el, this.collectData(records, 0));            this.all.fill(Ext.query(this.itemSelector, this.el.dom));            this.updateIndexes(0);        }        this.hasSkippedEmptyText = true;    },    /**     * Function which can be overridden to provide custom formatting for each Record that is used by this     * DataView's {@link #tpl template} to render each node.     * @param {Array/Object} data The raw data object that was used to create the Record.     * @param {Number} recordIndex the index number of the Record being prepared for rendering.     * @param {Record} record The Record being prepared for rendering.     * @return {Array/Object} The formatted data in a format expected by the internal {@link #tpl template}'s overwrite() method.     * (either an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'}))     */    prepareData : function(data){        return data;    },    /**     * <p>Function which can be overridden which returns the data object passed to this     * DataView's {@link #tpl template} to render the whole DataView.</p>     * <p>This is usually an Array of data objects, each element of which is processed by an     * {@link Ext.XTemplate XTemplate} which uses <tt>'&lt;tpl for="."&gt;'</tt> to iterate over its supplied     * data object as an Array. However, <i>named</i> properties may be placed into the data object to     * provide non-repeating data such as headings, totals etc.</p>     * @param records {Array} An Array of {@link Ext.data.Record}s to be rendered into the DataView.     * @return {Array} An Array of data objects to be processed by a repeating XTemplate. May also     * contain <i>named</i> properties.     */    collectData : function(records, startIndex){        var r = [];        for(var i = 0, len = records.length; i < len; i++){            r[r.length] = this.prepareData(records[i].data, startIndex+i, records[i]);        }        return r;    },    // private    bufferRender : function(records){        var div = document.createElement('div');        this.tpl.overwrite(div, this.collectData(records));        return Ext.query(this.itemSelector, div);    },    // private    onUpdate : function(ds, record){        var index = this.store.indexOf(record);        var sel = this.isSelected(index);        var original = this.all.elements[index];        var node = this.bufferRender([record], index)[0];        this.all.replaceElement(index, node, true);        if(sel){            this.selected.replaceElement(original, node);            this.all.item(index).addClass(this.selectedClass);        }        this.updateIndexes(index, index);    },    // private    onAdd : function(ds, records, index){        if(this.all.getCount() == 0){            this.refresh();            return;        }        var nodes = this.bufferRender(records, index), n, a = this.all.elements;        if(index < this.all.getCount()){            n = this.all.item(index).insertSibling(nodes, 'before', true);            a.splice.apply(a, [index, 0].concat(nodes));        }else{            n = this.all.last().insertSibling(nodes, 'after', true);            a.push.apply(a, nodes);        }        this.updateIndexes(index);    },    // private    onRemove : function(ds, record, index){        this.deselect(index);        this.all.removeElement(index, true);        this.updateIndexes(index);        if (this.store.getCount() == 0){            this.refresh();        }    },    /**     * Refreshes an individual node's data from the store.     * @param {Number} index The item's data index in the store     */    refreshNode : function(index){        this.onUpdate(this.store, this.store.getAt(index));    },    // private    updateIndexes : function(startIndex, endIndex){

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产日韩av一区| 丁香亚洲综合激情啪啪综合| 国产做a爰片久久毛片| 99r精品视频| 欧美xfplay| 一区二区在线观看不卡| 激情六月婷婷综合| 91成人免费在线视频| 精品国产三级电影在线观看| 最近日韩中文字幕| 国产在线视频精品一区| 欧美日韩国产一级片| 中文字幕一区二区三区视频| 麻豆freexxxx性91精品| 欧美熟乱第一页| 日韩理论片中文av| 成人午夜伦理影院| 久久毛片高清国产| 秋霞午夜鲁丝一区二区老狼| 色婷婷av一区二区三区之一色屋| 久久综合精品国产一区二区三区 | 国产成人自拍网| 欧美美女一区二区三区| 亚洲精选视频免费看| 国产不卡视频在线观看| 精品久久国产老人久久综合| 蜜臀va亚洲va欧美va天堂| 91精品国产一区二区| 亚洲成人动漫在线免费观看| 欧美在线|欧美| 亚洲欧美激情视频在线观看一区二区三区| 九九精品一区二区| 日韩欧美国产成人一区二区| 日本成人在线不卡视频| 91精品国产综合久久久久久 | 国产精品私房写真福利视频| 久久成人久久鬼色| 日韩欧美视频在线| 九色综合国产一区二区三区| 精品国产伦一区二区三区免费| 日本不卡一区二区三区高清视频| 欧美日韩一级二级三级| 性久久久久久久久久久久| 欧美人动与zoxxxx乱| 奇米精品一区二区三区在线观看 | 日本二三区不卡| 一区二区三区不卡在线观看| 色94色欧美sute亚洲线路一久| 亚洲男同性恋视频| 欧美美女直播网站| 激情综合色综合久久| 久久久一区二区三区捆绑**| 国产成人欧美日韩在线电影| 中文字幕亚洲区| 欧美亚洲日本国产| 美日韩一区二区三区| 国产日韩亚洲欧美综合| av不卡一区二区三区| 一区二区三区四区激情| 91精品福利在线一区二区三区| 美女视频黄 久久| 国产女人18水真多18精品一级做| 国产69精品久久777的优势| 中文字幕一区二区三区四区不卡| 欧美性淫爽ww久久久久无| 日本怡春院一区二区| 国产丝袜欧美中文另类| 色综合久久综合网| 日韩不卡免费视频| 国产精品国产三级国产| 欧美性极品少妇| 韩国女主播一区| 一区二区三区四区视频精品免费| 91精品视频网| 91在线观看污| 久久99在线观看| 亚洲另类在线一区| 精品免费99久久| 色综合咪咪久久| 国产一区二区三区日韩| 亚洲影视在线观看| 国产午夜精品一区二区三区四区| 91麻豆国产在线观看| 九九久久精品视频| 亚洲一区二区三区四区在线| 久久综合精品国产一区二区三区| 欧美写真视频网站| 99国产精品国产精品久久| 精品一区二区免费看| 亚洲国产另类av| 国产精品久久久久影院亚瑟 | 欧美性猛交xxxx乱大交退制版 | 91在线无精精品入口| 久久精品国产免费| 亚洲一级二级三级在线免费观看| 久久久久久**毛片大全| 欧美一区二区私人影院日本| 一本久久综合亚洲鲁鲁五月天| 黄色日韩三级电影| 麻豆久久久久久| 天天综合天天做天天综合| 亚洲欧美日韩在线播放| 国产亚洲欧美日韩在线一区| 日韩欧美国产系列| 欧美一区二区三区色| 欧美午夜电影在线播放| 91伊人久久大香线蕉| 国产成人高清视频| 九九视频精品免费| 久久精品国产亚洲一区二区三区 | 欧美欧美欧美欧美| 欧美色精品在线视频| 日本精品视频一区二区三区| 99久免费精品视频在线观看 | 91福利国产精品| 色综合婷婷久久| 91精品福利视频| www.性欧美| 成人av资源站| av成人免费在线观看| av在线不卡免费看| 色综合久久中文综合久久97| 99国产精品久久久| 91传媒视频在线播放| 欧美视频在线一区| 欧美日韩情趣电影| 欧美日韩日日夜夜| 欧美一级艳片视频免费观看| 555夜色666亚洲国产免| 日韩精品中文字幕在线不卡尤物| 欧美一区二视频| 欧美va日韩va| 国产喷白浆一区二区三区| 国产精品久线在线观看| 日韩理论在线观看| 亚洲va欧美va人人爽午夜| 日本欧美一区二区三区乱码 | 欧美精品一区二区三区在线| 欧美精品一区二区三区很污很色的 | 国产乱人伦精品一区二区在线观看 | 久久先锋资源网| 欧美激情一区不卡| 亚洲精品日韩综合观看成人91| 亚洲成人tv网| 国产乱淫av一区二区三区 | 欧美精品少妇一区二区三区| 日韩欧美国产午夜精品| 中日韩免费视频中文字幕| 亚洲国产欧美另类丝袜| 国内外精品视频| 99国产欧美另类久久久精品| 欧美亚男人的天堂| 久久精品这里都是精品| 一区二区三区四区国产精品| 日本91福利区| 成人深夜在线观看| 在线电影院国产精品| 国产欧美日韩亚州综合| 性感美女极品91精品| 国产成人一区在线| 欧美日韩国产综合久久| 亚洲国产精品成人综合色在线婷婷 | 蜜臀av一区二区三区| 波多野结衣中文字幕一区二区三区 | 91老司机福利 在线| 91精品国产欧美一区二区18 | www.亚洲色图| 精品三级在线观看| 亚洲精品视频免费看| 国产风韵犹存在线视精品| 欧美日韩一区二区三区在线看| 欧美经典一区二区| 麻豆精品视频在线观看| 欧美在线999| 1024成人网| 国产成人精品www牛牛影视| 欧美一卡二卡在线观看| 亚洲精品免费看| 成人精品国产免费网站| 日韩精品一区二区在线| 天天亚洲美女在线视频| 91激情在线视频| 亚洲三级免费观看| 国产成人在线色| 欧美精品一区二| 无码av免费一区二区三区试看| 色综合色综合色综合色综合色综合 | 欧美人妖巨大在线| 亚洲黄色录像片| 99国产欧美另类久久久精品| 国产日本欧洲亚洲| 精品一区二区在线观看| 宅男在线国产精品| 同产精品九九九| 欧美精品在欧美一区二区少妇 | 国产精品三级在线观看| 国产原创一区二区三区| 欧美不卡123| 国产综合久久久久影院| 精品国产髙清在线看国产毛片|