The widget allows showing the detail of an item (similar to the detail view of the Result List widget).
To control which item is shown, two options are available: the currently active item (of other item list widgets, like Result List), or the dashboard store.
The dashboard store option is meant to be used in custom widgets as follows:
this.dashboard.store.set({ key: item }) |
Where key
is defined in the Item Detail widget configuration, and item
is a Squirro item model.
In order to get item models from an item collection, standard Backbone rules apply:
var item = itemCollection.get(itemId); |