Invoked when an item is selected.
The view model containing the item that was selected.
Invoked when an item is unselected.
The view model containing the item that was unselected.
Binds a handler to an Observable or to a dojo.connect. Binding to an Observable:
``` this.auto(someObservable, function (newValue) { });
with explicit scope:
this.auto(someObservable, this, function (newValue) { });
Alternately, pass an event name as a string to use dojo.connect:
this.auto(window, "onclick", function () { }); ```
Either an Observable (for observable bindings) or a regular object (if arg1 is a string)
If arg0 is an Observable, a function or scope object. Otherwise, an event name (to use with dojo.connect).
If arg0 is an Observable, a function handler.
Destroys the object completely
Disposes any bindings tracked by this object.
Gets a language resource from the Application's resource dictionary, given a key, and optional locale. Returns null if the resource does not exist.
The locale of the resource to fetch. Defaults to the current application locale.
Given an underlying item, returns the view model for it.
The underlying item to find the view model for.
Gets a view model for an item, provided that the item is selected.
The item.
Handles changes to the selected state of a view model.
Whether or not the given item is selected.
The view model to handle selection change for.
Handles changes in the underlying collection, adapting new items and removing entries for items that have been removed.
An instance of {@link events.CollectionChangedArgs} representing the collection change.
Returns true or false based on the existence of a view model for a particular item.
The item that may or may not have a corresponding view model.
Override or attach to provide custom clean-up behaviour.
Selects an item, given either an item or a SelectorItemViewModel for an item.
The underlying item to select for. Pass null if you have a SelectorItemViewModel already.
The view model, already obtained, to select. Pass null if you just have a raw item.
Sets the underlying collection and enables selection of items from it.
The collection of items to model selection for.
The name of the field to use on the underlying items for selection.
The resource path of the HTML template to use for rendering.
Toggles the state of the selector menu, expanding or collapsing it.
Tracks a subscription to an {@link geocortex.framework.commands.Command}, disposing it when this object is disposed with the destroy method.
Tracks a subscription to an {@link geocortex.framework.events.Event}, disposing it when this object is disposed with the destroy method.
Unselects any selected items.
An item to ignore...this item's selected state will not be changed, i.e. because it is intended to be the only selected item.
Unselects an item, given either an item or a SelectorItemViewModel for an item.
The underlying item to unselect for. Pass null if you have a SelectorItemViewModel already.
The view model, already obtained, to select. Pass null if you just have a raw item.
View Model for the Selector widget.