Options
All
  • Public
  • Public/Protected
  • All
Menu

The interface of the object with all methods for working with search expressions.

Hierarchy

  • SearchExpressionFacadeObject

Index

Methods

resolveComponents

  • resolveComponents(expressions: string): string[]
  • Takes a search expression that may contain multiple components, separated by commas or whitespaces. Resolves each search expression to the component it refers to and returns a list of IDs of the resolved components.

    Parameters

    • expressions: string

      A search expression with one or multiple components to resolve.

    Returns string[]

    A list of IDs with the resolved components.

resolveComponentsAsSelector

  • Takes a search expression that may contain multiple components, separated by commas or whitespaces. Resolves each search expression to the component it refers to and returns a JQuery object with the DOM elements of the resolved components.

    Parameters

    Returns JQuery<HTMLElement>

    A list with the resolved components.

splitExpressions

  • splitExpressions(expression: string): string[]
  • Splits the given search expression into its components. The components of a search expression are separated by either a comman or a whitespace.

    splitExpressions("") // => [""]
    splitExpressions("form") // => ["form"]
    splitExpressions("form,input") // => ["form", "input"]
    splitExpressions("form input") // => ["form", "input"]
    splitExpressions("form,@child(1,2)") // => ["form", "child(1,2)"]

    Parameters

    • expression: string

      A search expression to split.

    Returns string[]

    The individual components of the given search expression.

Generated using TypeDoc