Interface ElementMatchesOptions
interface ElementMatchesOptions {
excludeClasses?: Iterable<string>;
excludeIds?: Iterable<string>;
excludeSelector?: string;
includeClasses?: Iterable<string>;
includeIds?: Iterable<string>;
predicate?: (el: Element) => boolean;
selector?: string;
}
excludeClasses?: Iterable<string>;
excludeIds?: Iterable<string>;
excludeSelector?: string;
includeClasses?: Iterable<string>;
includeIds?: Iterable<string>;
predicate?: (el: Element) => boolean;
selector?: string;
}
Hierarchy
- ElementMatchesOptions (View Summary)
Index
Properties
OptionalexcludeClasses
Iterable list of CSS classes which disqualify an element.
OptionalexcludeIds
Iterable list of IDs which disqualify an element.
OptionalexcludeSelector
excludeSelector?: string
CSS selector which disqualifies an element if matched.
OptionalincludeClasses
Iterable list of CSS classes an element must contain to be accepted.
OptionalincludeIds
Iterable list of IDs an element must have to be accepted.
Optionalpredicate
Custom predicate; must return true for an element to be accepted.
Optionalselector
selector?: string
CSS selector an ancestor must match to be accepted.
Options for elementMatchesFilter.