Start building an event-delegation handler for the (global) body element.
Start building an event-delegation handler for a specified root.
Method overload that takes an Element instance as the root.
The element type for the root element. This param is inferred from the selector argument.
A root element reference.
Start building an event-delegation handler for a specified root.
Method overload that takes a CSS tag selector for the root. This provides autocompletion features when starting to type tag-qualified CSS selectors.
the HTML tag name literal type for the selector argument. This param is inferred from the selector argument.
An HTML (or SVG) tag selector.
Start building an event-delegation handler for a specified root.
Method overload that takes a CSS selector for the root. It wil attempt to parse the selector and infer the root element type from it.
The CSS-style selector literal type for the selector argument. This param is inferred from the selector argument.
A tag-qualified CSS-style selector to parse.
Start building an event-delegation handler for a specified root.
Method overload that can be used when all else fails. If previous overloads failed to match, this one allows you to explicitly specify the expected root type for any selector string.
The element type for the root element.
This param can be explicitly given to override the default Element
type.
Any CSS selector that is expected to select the root element type.
Start building an event-delegation handler for multiple specified roots.
Method overload that takes Element instances as the roots.
The element type for the root elements. Note that this may very well be a union type when an array with multiple root types is given. This param is inferred from the selector argument.
An array of root element references.
Start building an event-delegation handler for multiple specified roots.
Method overload that takes a CSS tag selector for the roots. This provides autocompletion features when starting to type tag-qualified CSS selectors.
the HTML tag name literal type for the selector argument. This param is inferred from the selector argument.
An HTML (or SVG) tag selector.
Start building an event-delegation handler for multiple specified roots.
Method overload that takes a CSS selector for the roots. It wil attempt to parse the selector and infer the root elements' type from it.
The CSS-style selector literal type for the selector argument. This param is inferred from the selector argument.
A tag-qualified CSS-style selector to parse.
Start building an event-delegation handler for multiple specified roots.
Method overload that can be used when all else fails. If previous overloads failed to match, this one allows you to explicitly specify the expected type for any selector string.
The element type for the root element.
This param can be explicitly given to override the default Element
type.
Represents the package's main namespace
EventDelegation
. Provides methods for setting the event-delegation root element(s)AskRoot
=>AskEvent
=>AskSelector
=>AskListener
buildsEventHandler