ReadonlyboundThe event.
ReadonlychildReadonlychildrenReadonlysiblingReadonlysiblingsReadonlyreifectsReadonlyisReadonlyclosestReadonlyonOptionalclasses: string | string[]String of classes separated by spaces, or array of strings.
Optionalforce: boolean(Optional) Boolean that turns the toggle into a one way-only operation. If set to false, then the class will only be removed, but not added. If set to true, then token will only be added, but not removed.
Itself, allowing for method chaining.
Sets the declared properties to the element.
The properties object.
OptionalsetOnlyBaseProperties: booleanIf set to true, will only set the base turbo properties (classes, text, style, id, children, parent, etc.) and ignore all other properties not explicitly defined in TurboProperties.
Itself, allowing for method chaining.
The type of the event.
The function that receives a notification.
Optionaloptions: AddEventListenerOptionsAn options object that specifies characteristics about the event listener.
Optionalmanager: TurboEventManagerThe associated event manager. Defaults to the first created manager, or a new instantiated one if none already exist.
Itself, allowing for method chaining.
The type of the event.
The name of the tool. Set to null or undefined to check for listeners not bound to a tool.
The function that receives a notification.
Optionaloptions: AddEventListenerOptionsAn options object that specifies characteristics about the event listener.
Optionalmanager: TurboEventManagerThe associated event manager. Defaults to the first created manager, or a new instantiated one if none already exist.
Itself, allowing for method chaining.
Optionaloptions: AddEventListenerOptionsOptionalmanager: TurboEventManagerThe type of the event. Set to null or undefined to get all event types.
The function that receives a notification.
Optionalmanager: TurboEventManagerThe associated event manager. Defaults to the first created manager, or a new instantiated one if none already exist.
The type of the event. Set to null or undefined to get all event types.
The name of the tool the listener is attached to. Set to null or undefined to check for listeners not bound to a tool.
The function that receives a notification.
Optionalmanager: TurboEventManagerThe associated event manager. Defaults to the first created manager, or a new instantiated one if none already exist.
The type of the event. Set to null or undefined to get all event types.
OptionaltoolName: stringThe name of the tool to consider (if any). Set to null or undefined to check for listeners not bound to a tool.
Optionalmanager: TurboEventManagerThe associated event manager. Defaults to the first created manager, or a new instantiated one if none already exist.
The type of the event.
The function that receives a notification.
Optionalmanager: TurboEventManagerThe associated event manager. Defaults to the first created manager, or a new instantiated one if none already exist.
Itself, allowing for method chaining.
The type of the event.
The name of the tool the listener is attached to. Set to null or undefined to check for listeners not bound to a tool.
The function that receives a notification.
Optionalmanager: TurboEventManagerThe associated event manager. Defaults to the first created manager, or a new instantiated one if none already exist.
Itself, allowing for method chaining.
The type of the event. Set to null or undefined to consider all types.
OptionaltoolName: stringThe name of the tool associated (if any). Set to null or undefined to check for listeners not bound to a tool.
Optionalmanager: TurboEventManagerThe associated event manager. Defaults to the first created manager, or a new instantiated one if none already exist.
Itself, allowing for method chaining.
Optionalmanager: TurboEventManagerThe associated event manager. Defaults to the first created manager, or a new instantiated one if none already exist.
Itself, allowing for method chaining.
Optionaloptions: PreventDefaultOptionsAn options object to customize the behavior of the function.
Optionalparent: NodeArray of (or single) child nodes.
Optionalindex: numberThe position at which to add the child relative to the parent's child list. Leave undefined to add the child at the end.
OptionalreferenceList: Node[] | NodeListOf<Node>The child list to
use as computation reference for index placement. Defaults to the node's childrenArray.
Itself, allowing for method chaining.
Optionalchildren: Node | Node[]Array of (or single) child nodes.
Optionalindex: numberThe position at which to add the child relative to the parent's child list. Leave undefined to add the child at the end.
OptionalreferenceList: Node[] | NodeListOf<Node>The child list to
use as computation reference for index placement. Defaults to the node's childrenArray.
Itself, allowing for method chaining.
Itself, allowing for method chaining.
The index of the child node in the provided list, or -1 if the child is not found.
OptionalreferenceList: Node[]The siblings list to use as computation
reference for index placement. Defaults to the node's siblings.
True if the children belong to the node, false otherwise.
Finds the closest ancestor of the current element (or the current element itself) that matches the provided CSS selector or element type.
The (valid) CSS selector string, or element constructor/class to match.
The matching ancestor element, or null if no match is found.
A string representing the style attribute to set.
A string representing the value to set the attribute to.
Optionalinstant: booleanIf true, will set the fields directly. Otherwise, will set them on next animation frame.
Itself, allowing for method chaining.
A string representing the style attribute to set.
A string representing the value to set the attribute to.
Optionalseparator: stringThe separator to use between the existing and new value.
Optionalinstant: booleanIf true, will set the fields directly. Otherwise, will set them on next animation frame.
Itself, allowing for method chaining.
A CSS string of style attributes and their values, seperated by semicolons, or an object of CSS properties. Use the css literal function for autocompletion.
Optionalinstant: booleanIf true, will set the fields directly. Otherwise, will set them on next animation frame.
Itself, allowing for method chaining.
Optionaloptions: MakeSubstrateOptionsOptionalsubstrate: stringOptionalsubstrate: stringOptionalsubstrate: stringOptionalsubstrate: stringOptionalsubstrate: stringOptionalsubstrate: stringOptionalname: stringOptionalname: stringOptionalname: stringOptionalname: stringOptionalname: stringOptionalproperties: SubstrateSolverPropertiesThe unique name of the tool to register under the manager.
Optionaloptions: MakeToolOptionsTool creation options (activation, click mode, key mapping, manager).
Optionalmanager: TurboEventManagerThe associated event manager (defaults to TurboEventManager.instance).
True if the element is a tool, false otherwise.
Optionalmanager: TurboEventManagerThe associated event manager (defaults to TurboEventManager.instance).
The list of tool names.
Optionalmanager: TurboEventManagerThe associated event manager (defaults to TurboEventManager.instance).
The first tool name, if any.
Optionalmanager: TurboEventManagerOptionalmanager: TurboEventManagerThe behavior type/event name (e.g., "pointerdown", "click", custom turbo event).
The behavior function. Return true to consume.
OptionaltoolName: stringTool name to bind the behavior to. Defaults to this element's first tool.
Optionalmanager: TurboEventManagerThe manager under which the behavior is registered.
The behavior/event type to check.
OptionaltoolName: stringThe tool name to check under.
Optionalmanager: TurboEventManagerThe associated manager.
True if one or more behaviors are registered.
The behavior/event type to clear.
OptionaltoolName: stringThe tool name whose behaviors will be removed.
Optionalmanager: TurboEventManagerThe associated manager.
The tool whose behaviors should run.
The behavior/event type to execute.
The triggering event instance.
Optionalmanager: TurboEventManagerThe associated manager.
True if at least one behavior returned true (consumed).
Optionalmanager: TurboEventManagerThe node to manipulate when interacting with the element itself.
Optionalmanager: TurboEventManagerThe associated manager (defaults to TurboEventManager.instance).
Optionalmanager: TurboEventManagerThe associated manager (defaults to TurboEventManager.instance).
True if an embedded target is present.
Optionalmanager: TurboEventManagerThe associated manager (defaults to TurboEventManager.instance).
The embedded target node, if any.
Optionaltype: stringOptionalignore: booleanOptionalmanager: TurboEventManagerOptionaltype: stringOptionalmanager: TurboEventManager
Description
Readonly set of listeners bound to this node.