Events Context
class EventsContext<T, I>(element: Tag<HTMLElement>, rowSelectionStore: RowSelectionStore<T, I>) : EventContext<HTMLElement>
Content copied to clipboard
This context class defines the event context of the data table.
It enables the manual event handling for accessing:
the selected row by a double click
all selected rows (if multiple selection is allowed)
just the only one selected row (if single selection mode is activated)
The DSL can be used like this:
events {
dbClicks handledBy someStore.handler
selectedRows handledBy someStore.handler
selectedRow handledBy someStore.handler
}Content copied to clipboard
Constructors
Link copied to clipboard
fun <T, I> EventsContext(element: Tag<HTMLElement>, rowSelectionStore: RowSelectionStore<T, I>)
Content copied to clipboard
Functions
Link copied to clipboard
open infix override fun <E : Event, X : Element> DomListener<E, X>.handledBy(handler: Handler<Unit>)
Content copied to clipboard
open infix override fun <E : Event, X : Element> DomListener<E, X>.handledBy(execute: suspend (E) -> Unit): Job
Content copied to clipboard
open infix override fun <E : Event> WindowListener<E>.handledBy(handler: Handler<Unit>)
Content copied to clipboard
Properties
Link copied to clipboard
open override val pagehides: DomListener<PageTransitionEvent, HTMLElement>
Content copied to clipboard
Link copied to clipboard
open override val pageshows: DomListener<PageTransitionEvent, HTMLElement>
Content copied to clipboard