new Selector( classname )

Description

Representation of a Selector

Parameters
Name Type Description
classname string

class to create selector for

Methods


toString() → {string}

Description

Returns the raw selector, this is how native function get the value.

Returns

raw selector.


valueOf() → {string}

Description

Returns the raw selector, this is how native function get the value.

Returns

raw selector.


child( other ) → {DOMTools.Selector}

Description

Adds another selector as a direct child > to this one.

Parameters
Name Type Description
other string | DOMTools.Selector

Selector to add as child

Returns

returns self to allow chaining


adjacent( other ) → {DOMTools.Selector}

Description

Adds another selector as a adjacent sibling + to this one.

Parameters
Name Type Description
other string | DOMTools.Selector

Selector to add as adjacent sibling

Returns

returns self to allow chaining


sibling( other ) → {DOMTools.Selector}

Description

Adds another selector as a general sibling ~ to this one.

Parameters
Name Type Description
other string | DOMTools.Selector

Selector to add as sibling

Returns

returns self to allow chaining


descend( other ) → {DOMTools.Selector}

Description

Adds another selector as a descendent (space) to this one.

Parameters
Name Type Description
other string | DOMTools.Selector

Selector to add as descendent

Returns

returns self to allow chaining


and( other ) → {DOMTools.Selector}

Description

Adds another selector to this one via ,.

Parameters
Name Type Description
other string | DOMTools.Selector

Selector to add

Returns

returns self to allow chaining