Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

HTMLSlotElement

interface HTMLSlotElement extends HTMLElement {
name: string;
addEventListener<K extends keyof HTMLElementEventMap>(
type: K,
listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void;
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void;
assign(...nodes: (Element | Text)[]): void;
assignedElements(options?: AssignedNodesOptions): Element[];
assignedNodes(options?: AssignedNodesOptions): Node[];
removeEventListener<K extends keyof HTMLElementEventMap>(
type: K,
listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void;
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void;
}
var HTMLSlotElement: {
prototype: HTMLSlotElement;
new (): HTMLSlotElement;
}
;

§Extends

§Properties

§
name: string
[src]

§Methods

§
addEventListener<K extends keyof HTMLElementEventMap>(
type: K,
listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
[src]
§
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
[src]
§
assign(...nodes: (Element | Text)[]): void
[src]
§
assignedElements(options?: AssignedNodesOptions): Element[]
[src]
§
assignedNodes(options?: AssignedNodesOptions): Node[]
[src]
§
removeEventListener<K extends keyof HTMLElementEventMap>(
type: K,
listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
[src]
§
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void
[src]