ISingleSelectionHandler
Home > @gooddata/sdk-ui-filters > ISingleSelectionHandler
ISingleSelectionHandler interface
Handles simple selection of at most one item.
Signature:
export interface ISingleSelectionHandler<T>
Properties
| Property | Type | Description |
|---|---|---|
| onSelectionChanged | CallbackRegistration<OnSelectionChangedCallbackPayload<T>> | Registers a callback that will be fired when the selection changes. Returns unsubscribe function, that will unregister it, once called.Multiple callbacks can be registered by this function. |
Methods
| Method | Description |
|---|---|
| changeSelection(selection) | Change the selection. |
| getSelection() | Returns the current selection. |