X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..6746dc89c47ed01b165cc1152533605f97eb8e8d:/docs/source/BoundList2.html diff --git a/docs/source/BoundList2.html b/docs/source/BoundList2.html index 247b57d9..5c8d5661 100644 --- a/docs/source/BoundList2.html +++ b/docs/source/BoundList2.html @@ -1,4 +1,21 @@ -
/**
+
+
+
+
+ The source code
+
+
+
+
+
+
+ /**
* @class Ext.view.BoundList
* @extends Ext.view.View
* An internal used DataView for ComboBox, MultiSelect and ItemSelector.
@@ -9,14 +26,14 @@ Ext.define('Ext.view.BoundList', {
alternateClassName: 'Ext.BoundList',
requires: ['Ext.layout.component.BoundList', 'Ext.toolbar.Paging'],
- /**
+ /**
* @cfg {Number} pageSize If greater than <tt>0</tt>, a {@link Ext.toolbar.Paging} is displayed at the
* bottom of the list and store queries will execute with page start and
* {@link Ext.toolbar.Paging#pageSize limit} parameters.
*/
pageSize: 0,
- /**
+ /**
* @property pagingToolbar
* @type {Ext.toolbar.Paging}
* A reference to the PagingToolbar instance in this view. Only populated if {@link #pageSize} is greater
@@ -50,13 +67,17 @@ Ext.define('Ext.view.BoundList', {
me.addCls(baseCls + '-floating');
}
- // should be setting aria-posinset based on entire set of data
- // not filtered set
- me.tpl = Ext.create('Ext.XTemplate',
- '<ul><tpl for=".">',
- '<li role="option" class="' + itemCls + '">' + me.getInnerTpl(me.displayField) + '</li>',
- '</tpl></ul>'
- );
+ if (!me.tpl) {
+ // should be setting aria-posinset based on entire set of data
+ // not filtered set
+ me.tpl = Ext.create('Ext.XTemplate',
+ '<ul><tpl for=".">',
+ '<li role="option" class="' + itemCls + '">' + me.getInnerTpl(me.displayField) + '</li>',
+ '</tpl></ul>'
+ );
+ } else if (Ext.isString(me.tpl)) {
+ me.tpl = Ext.create('Ext.XTemplate', me.tpl);
+ }
if (me.pageSize) {
me.pagingToolbar = me.createPagingToolbar();
@@ -112,14 +133,14 @@ Ext.define('Ext.view.BoundList', {
me.refreshed--;
}
},
-
+
initAria: function() {
this.callParent();
-
+
var selModel = this.getSelectionModel(),
mode = selModel.getSelectionMode(),
actionEl = this.getActionEl();
-
+
// TODO: subscribe to mode changes or allow the selModel to manipulate this attribute.
if (mode !== 'SINGLE') {
actionEl.dom.setAttribute('aria-multiselectable', true);
@@ -131,4 +152,6 @@ Ext.define('Ext.view.BoundList', {
this.callParent();
}
});
-
\ No newline at end of file
+
+
+