new DataSourceManager(options)
Parameters:
Name | Type | Description |
---|---|---|
options |
Object |
Example
{@lang javascript} var datamgr = new WinJSContrib.UI.DataSources.DataSourceManager({ defaultGroupLimit: 12, groupKind: WinJSContrib.UI.DataSources.Grouping.byField, field: 'metadata.genre', listview: page.zoomedInList, zoomedOutListView: page.zoomedOutList });
Members
-
defaultGroupLimit :number
-
no grouping if items.length < defaultGroupLimit
Type:
- number
-
field :string
-
path to the field to use for groupings
Type:
- string
-
filter :function
-
item filter callback
Type:
- function
-
groupedList :WinJS.UI.ListView
-
listview for grouped items
Type:
- WinJS.UI.ListView
-
groupKind :function
-
groupKind grouping manager function
Type:
- function
-
items :Array
-
data items
Type:
- Array
-
listview :WinJS.UI.ListView
-
items listview
Type:
- WinJS.UI.ListView
Methods
-
attach()
-
attach listviews to data
-
detach()
-
detach listviews from data
-
init()
-
initialise data
-
parentSemanticZoom() → {WinJS.UI.SemanticZoom}
-
get parent semantic zoom control
Returns:
- Type
- WinJS.UI.SemanticZoom
-
prepareItems(items)
-
clean-up, initialise data and bind listviews to data
Parameters:
Name Type Description items
Array