SelectionOn extension Handling events

on

Methods

onBind(String typename, OnListener? listener, [JSAny? options]) Selection
Adds or removes a listener to each selected element for the specified event typenames.
onGet(String typename) → OnListener?
Returns the currently-assigned listener for the specified event typename on the first (non-null) selected element, if any.