Selection

Methods

# (inner) children() → {jLight}

Gets a jLight collection from the collections children elements.
Source:
Tutorials:
Returns:
jLight collection
Type
jLight

# (inner) closest(?selector) → {jLight}

Gets a jLight collection from all the collections parent elements matching the selector.
Parameters:
Name Type Attributes Description
selector string <optional>
The selector to use for matching elements
Source:
Tutorials:
Returns:
jLight collection
Type
jLight

# (inner) eq(index) → {jLight}

Gets the jLight element at the supplied index from the collection.
Parameters:
Name Type Description
index number The index to supply to the function
Source:
Tutorials:
Returns:
jLight collection
Type
jLight

# (inner) first() → {jLight}

Gets the first jLight element from the collection.
Source:
Tutorials:
Returns:
jLight collection
Type
jLight

# (inner) get(index) → {HTMLElement|undefined}

Gets the element at the supplied index from the collection.
Parameters:
Name Type Description
index number The index to supply to the function
Source:
Tutorials:
Returns:
The element or null
Type
HTMLElement | undefined

# (inner) has($elements) → {jLight}

Gets a jLight collection from the collections elements which contain elements.
Parameters:
Name Type Description
$elements jLight | string | HTMLElement | HTMLCollection | NodeList The elements to apply the function to
Source:
Tutorials:
Returns:
jLight collection
Type
jLight

# (inner) last() → {jLight}

Gets the last jLight element from the collection.
Source:
Tutorials:
Returns:
jLight collection
Type
jLight

# (inner) next(?selector) → {jLight}

Gets a jLight collection from the collections next sibling elements.
Parameters:
Name Type Attributes Description
selector string <optional>
The selector to use for matching elements
Source:
Tutorials:
Returns:
jLight collection
Type
jLight

# (inner) not($elements) → {jLight}

Gets a jLight collection from the collections elements which are not part of elements.
Parameters:
Name Type Description
$elements jLight | string | HTMLElement | HTMLCollection | NodeList The elements to apply the function to
Source:
Tutorials:
Returns:
jLight collection
Type
jLight

# (inner) parent() → {jLight}

Gets a jLight collection from the collections parent elements.
Source:
Tutorials:
Returns:
jLight collection
Type
jLight

# (inner) parents() → {jLight}

Gets a jLight collection from all the collections parent elements.
Source:
Tutorials:
Returns:
jLight collection
Type
jLight

# (inner) prev(?selector) → {jLight}

Gets a jLight collection from the collections previous sibling elements.
Parameters:
Name Type Attributes Description
selector string <optional>
The selector to use for matching elements
Source:
Tutorials:
Returns:
jLight collection
Type
jLight

# (inner) siblings() → {jLight}

Gets a jLight collection from the collections sibling elements.
Source:
Tutorials:
Returns:
jLight collection
Type
jLight