Skip to content

Class: SelectableSectionProxy

A IBindableSectionProxy can get/set the section's target. If a section doesn't have a section target, it doesn't support the interface

It is passed to rules to provide access to a section's target for application specific customizations.

Hierarchy

Implements

Summary

Constructors

Properties

Class Properties

Currently none in this class.

Inherited Properties

Accessors

Class Accessors

Currently none in this class.

Inherited Accessors

Methods

Class Methods

Inherited Methods

Constructors

Constructor

+ new SelectableSectionProxy(context: IContext): SelectableSectionProxy

Overrides BindableSectionProxy.constructor

Parameters:

Name Type
context IContext

Returns: SelectableSectionProxy

Methods

deselectAllItems

deselectAllItems(): void

Deselect all selected items of the section if it is in multiple selection mode.

Implementation of ISelectableSectionProxy.deselectAllItems

Returns: void


getSelectedItems

getSelectedItems(): [SelectedItem]

Get the current section selected items when selection mode is active. Otherwise an empty array will be returned.

Implementation of ISelectableSectionProxy.getSelectedItems

Returns: [SelectedItem]


getSelectedItemsCount

getSelectedItemsCount(): number

Returns the number of selected items in the section.

Implementation of ISelectableSectionProxy.getSelectedItemsCount

Returns: number


getSelectionChangedItem

getSelectionChangedItem(): ChangedItem

Get the last selected or deselected item.

Implementation of ISelectableSectionProxy.getSelectionChangedItem

Returns: ChangedItem


getSelectionMode

getSelectionMode(): string

Get selection mode for the current section. The return value is None or Multiple

Implementation of ISelectableSectionProxy.getSelectionMode

Returns: string


selectAllItems

selectAllItems(): void

Select all unselected items of the section if it is in multiple selection mode. Only items that are loaded and rendered will be selected. Items that are subsequently loaded via data paging will not be selected.

Implementation of ISelectableSectionProxy.selectAllItems

Returns: void


setSelectionMode

setSelectionMode(mode: string): any

Set the section selection mode

Implementation of ISelectableSectionProxy.setSelectionMode

Parameters:

Name Type
mode string

Returns: any