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

selectAll

Create an empty selection.

function selectAll(): Selection<null, undefined, null, undefined>;
function selectAll(selector: null): Selection<null, undefined, null, undefined>;
function selectAll(selector: undefined): Selection<null, undefined, null, undefined>;
function selectAll<GElement extends BaseType, OldDatum>(selector: string): Selection<GElement, OldDatum, HTMLElement, any>;
function selectAll<GElement extends BaseType, OldDatum>(nodes: GElement[] | ArrayLike<GElement> | Iterable<GElement>): Selection<GElement, OldDatum, null, undefined>;
§
selectAll(): Selection<null, undefined, null, undefined>
[src]

Create an empty selection.

§Return Type

§
Selection<null, undefined, null, undefined>
[src]
§
selectAll(selector: null): Selection<null, undefined, null, undefined>
[src]

Create an empty selection.

§Parameters

§
selector: null
[src]

§Return Type

§
Selection<null, undefined, null, undefined>
[src]
§
selectAll(selector: undefined): Selection<null, undefined, null, undefined>
[src]

Create an empty selection.

§Parameters

§
selector: undefined
[src]

§Return Type

§
Selection<null, undefined, null, undefined>
[src]
§
selectAll<GElement extends BaseType, OldDatum>(selector: string): Selection<GElement, OldDatum, HTMLElement, any>
[src]

Select all elements that match the specified selector string. The elements will be selected in document order (top-to-bottom). If no elements in the document match the selector, returns an empty selection.

The first generic "GElement" refers to the type of element to be selected. The second generic "OldDatum" refers to the type of the datum, of a selected element. This is useful when re-selecting elements with a previously set, know datum type.

§Type Parameters

§
GElement extends BaseType
[src]
§
OldDatum
[src]

§Parameters

§
selector: string
[src]

CSS selector string

§Return Type

§
Selection<GElement, OldDatum, HTMLElement, any>
[src]
§
selectAll<GElement extends BaseType, OldDatum>(nodes: GElement[] | ArrayLike<GElement> | Iterable<GElement>): Selection<GElement, OldDatum, null, undefined>
[src]

Select the specified array, array-like, or iterable of nodes. This is useful if you already have a reference to nodes, such as this.childNodes within an event listener or a global such as document.links. The nodes may instead be an iterable, or a pseudo-array such as a NodeList.

The first generic "GElement" refers to the type of element to be selected. The second generic "OldDatum" refers to the type of the datum, of a selected element.

§Type Parameters

§
GElement extends BaseType
[src]
§
OldDatum
[src]

§Parameters

§
nodes: GElement[] | ArrayLike<GElement> | Iterable<GElement>
[src]

An array, array-like, or iterable of nodes

§Return Type

§
Selection<GElement, OldDatum, null, undefined>
[src]