Edit this page

up.fragment up.fragment.subtree(parent, selector, [options])
JavaScript function

This feature is experimental. It may be changed or removed in a future version.

Returns a list of the given parent's descendants matching the given selector. The list will also include the parent element if it matches the selector itself.


parent Element

The parent element for the search.

selector string

The CSS selector to match.

[options.layer='current] up.LayerorstringorElement optional

The layer in whicht to match.

Return value

A list of all matching elements.