Clear Up
SharpKit Reference

AbstractViewConfig Class

Namespace: Ext.view

Derived Types

Constructors

Name Description
AbstractViewConfig(Object[])

Fields

Name Description
blockRefresh Set this to true to ignore refresh events on the bound store. This is useful if you wish to provide custom transition animations via a plugin Defaults to: false
deferEmptyText True to defer emptyText being applied until the store's first load. Defaults to: true
deferInitialRefresh Defaults to true to defer the initial refresh of the view. This allows the View to execute its render and initial layout more quickly because the process will not be encumbered by the expensive update of the view structure. Important: Be aware that this will mean that the View's item elements will not be available immediately upon render, so selection may not take place at render time. To access a View's item elements as soon as possible, use the viewready event. Or set deferInitialrefresh to false, but this will be at the cost of slower rendering. Defaults to: true
disableSelection True to disable selection within the DataView. This configuration will lock the selection model that the DataView uses.
emptyText The text to display in the view when there is no data to display. Note that when using local data the emptyText will not be displayed unless you set the deferEmptyText option to false. Defaults to: ""
itemCls Specifies the class to be assigned to each element in the view when used in conjunction with the itemTpl configuration. Defaults to: "x-dataview-item"
itemSelector This is a required setting. 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. The itemSelector is used to map DOM nodes to records. As such, there should only be one root level element that matches the selector for each record.
itemTpl The inner portion of the item template to be rendered. Follows an XTemplate structure and will be placed inside of a tpl.
loadingCls The CSS class to apply to the loading message element. Defaults to Ext.LoadMask.prototype.msgCls "x-mask-loading".
loadingHeight If specified, gives an explicit height for the data view when it is showing the loadingText, if that is specified. This is useful to prevent the view's height from collapsing to zero when the loading mask is applied and there are no other contents in the data view.
loadingText A string to display during data load operations. 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. Defaults to: "Loading..."
loadingUseMsg Whether or not to use the loading message. Defaults to: true
loadMask False to disable a load mask from displaying while the view is loading. This can also be a Ext.LoadMask configuration object. Defaults to: true
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 singleSelect. Defaults to: false

This cfg has been deprecated since 4.1.1

Use Ext.selection.Model.mode 'MULTI' instead.

overItemCls A CSS class to apply to each item in the view on mouseover. Setting this will automatically set trackOver to true.
preserveScrollOnRefresh =false True to preserve scroll position across refresh operations. Defaults to: false
selectedItemCls A CSS class to apply to each selected item in the view. Defaults to: "x-item-selected"
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

This cfg has been deprecated since 4.1.1

Use Ext.selection.Model.mode 'SIMPLE' instead.

singleSelect Allows selection of exactly one item at a time. As this is the default selection mode anyway, this config is completely ignored.

This cfg has been removed since 4.1.1

Use Ext.selection.Model.mode 'SINGLE' instead.

store The Ext.data.Store to bind this DataView to.
trackOver When true the overItemCls will be applied to rows when hovered over. This in return will also cause highlightitem and unhighlightitem events to be fired. Enabled automatically when the overItemCls config is set. Defaults to: false
© Copyright 2005-2011 SharpKit. All rights reserved.