You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
292 KiB

2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*
  2. This file is part of Ext JS 3.4
  3. Copyright (c) 2011-2013 Sencha Inc
  4. Contact: http://www.sencha.com/contact
  5. GNU General Public License Usage
  6. This file may be used under the terms of the GNU General Public License version 3.0 as
  7. published by the Free Software Foundation and appearing in the file LICENSE included in the
  8. packaging of this file.
  9. Please review the following information to ensure the GNU General Public License version 3.0
  10. requirements will be met: http://www.gnu.org/copyleft/gpl.html.
  11. If you are unsure which license is appropriate for your use, please contact the sales department
  12. at http://www.sencha.com/contact.
  13. Build date: 2013-04-03 15:07:25
  14. */
  15. Ext.data.JsonP.Ext_DataView({"alternateClassNames":[],"aliases":{"widget":["dataview"]},"enum":null,"parentMixins":[],"tagname":"class","subclasses":["Ext.list.ListView"],"extends":"Ext.BoxComponent","uses":[],"html":"<div><pre class=\"hierarchy\"><h4>Hierarchy</h4><div class='subclass first-child'><a href='#!/api/Ext.util.Observable' rel='Ext.util.Observable' class='docClass'>Ext.util.Observable</a><div class='subclass '><a href='#!/api/Ext.Component' rel='Ext.Component' class='docClass'>Ext.Component</a><div class='subclass '><a href='#!/api/Ext.BoxComponent' rel='Ext.BoxComponent' class='docClass'>Ext.BoxComponent</a><div class='subclass '><strong>Ext.DataView</strong></div></div></div></div><h4>Subclasses</h4><div class='dependency'><a href='#!/api/Ext.list.ListView' rel='Ext.list.ListView' class='docClass'>Ext.list.ListView</a></div><h4>Files</h4><div class='dependency'><a href='source/DataView.html#Ext-DataView' target='_blank'>DataView.js</a></div></pre><div class='doc-contents'><p>A mechanism for displaying data using custom layout templates and formatting. DataView uses an <a href=\"#!/api/Ext.XTemplate\" rel=\"Ext.XTemplate\" class=\"docClass\">Ext.XTemplate</a>\nas its internal templating mechanism, and is bound to an <a href=\"#!/api/Ext.data.Store\" rel=\"Ext.data.Store\" class=\"docClass\">Ext.data.Store</a>\nso that as the data in the store changes the view is automatically updated to reflect the changes. The view also\nprovides built-in behavior for many common events that can occur for its contained items including click, doubleclick,\nmouseover, mouseout, etc. as well as a built-in selection model. <b>In order to use these features, an <a href=\"#!/api/Ext.DataView-cfg-itemSelector\" rel=\"Ext.DataView-cfg-itemSelector\" class=\"docClass\">itemSelector</a>\nconfig must be provided for the DataView to determine what nodes it will be working with.</b></p>\n\n<p>The example below binds a DataView to a <a href=\"#!/api/Ext.data.Store\" rel=\"Ext.data.Store\" class=\"docClass\">Ext.data.Store</a> and renders it into an <a href=\"#!/api/Ext.Panel\" rel=\"Ext.Panel\" class=\"docClass\">Ext.Panel</a>.</p>\n\n\n<pre><code>var store = new <a href=\"#!/api/Ext.data.JsonStore\" rel=\"Ext.data.JsonStore\" class=\"docClass\">Ext.data.JsonStore</a>({\n url: 'get-images.php',\n root: 'images',\n fields: [\n 'name', 'url',\n {name:'size', type: 'float'},\n {name:'lastmod', type:'date', dateFormat:'timestamp'}\n ]\n});\nstore.load();\n\nvar tpl = new <a href=\"#!/api/Ext.XTemplate\" rel=\"Ext.XTemplate\" class=\"docClass\">Ext.XTemplate</a>(\n '&lt;tpl for=\".\"&gt;',\n '&lt;div class=\"thumb-wrap\" id=\"{name}\"&gt;',\n '&lt;div class=\"thumb\"&gt;&lt;img src=\"{url}\" title=\"{name}\"&gt;&lt;/div&gt;',\n '&lt;span class=\"x-editable\"&gt;{shortName}&lt;/span&gt;&lt;/div&gt;',\n '&lt;/tpl&gt;',\n '&lt;div class=\"x-clear\"&gt;&lt;/div&gt;'\n);\n\nvar panel = new <a href=\"#!/api/Ext.Panel\" rel=\"Ext.Panel\" class=\"docClass\">Ext.Panel</a>({\n id:'images-view',\n frame:true,\n width:535,\n autoHeight:true,\n collapsible:true,\n layout:'fit',\n title:'Simple DataView',\n\n items: new <a href=\"#!/api/Ext.DataView\" rel=\"Ext.DataView\" class=\"docClass\">Ext.DataView</a>({\n store: store,\n tpl: tpl,\n autoHeight:true,\n multiSelect: true,\n overClass:'x-view-over',\n itemSelector:'div.thumb-wrap',\n emptyText: 'No images to display'\n })\n});\npanel.render(document.body);\n</code></pre>\n\n</div><div class='members'><div class='members-section'><div class='definedBy'>Defined By</div><h3 class='members-title icon-cfg'>Config options</h3><div class='subsection'><div id='cfg-allowDomMove' class='member first-child inherited'><a href='#' class='side expandable'><span>&nbsp;</span></a><div class='title'><div class='meta'><a href='#!/api/Ext.Component' rel='Ext.Component' class='defined-in docClass'>Ext.Component</a><br/><a href='source/Component.html#Ext-Component-cfg-allowDomMove' tar