Selection Strategy
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.
SelectionByClick: selecting by clicking onto a row
SelectionByCheckBox: selection by checkbox added with an additional column
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
Link copied to clipboard
abstract fun manageSelectionByExtraColumn(component: DataTableComponent<T, I>)
Content copied to clipboard
Link copied to clipboard
abstract fun manageSelectionByRowEvents( component: DataTableComponent<T, I>, rowStore: SubStore<List<T>, T>, renderContext: Tr)
Content copied to clipboard