SelectionStrategy

interface SelectionStrategy<T, I>

This interface defines a strategy type in order to implement different selection mechanisms.

As we have identified already two different methods for selecting rows and provide default implementations for them, it is necessary to separate the implementation from the core data table component.

And of course we can use the strategy pattern, to provide the null object by NoSelection implementation, if the selection is disabled for the table.

Functions

manageSelectionByExtraColumn
Link copied to clipboard
js
abstract fun manageSelectionByExtraColumn(component: DataTableComponent<T, I>)
manageSelectionByRowEvents
Link copied to clipboard
js
abstract fun manageSelectionByRowEvents(component: DataTableComponent<T, I>, rowStore: SubStore<List<T>, T>, renderContext: Tr)

Inheritors

NoSelection
Link copied to clipboard
SelectionByCheckBox
Link copied to clipboard
SelectionByClick
Link copied to clipboard