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(source: JQuery<HTMLElement>, 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

    • source: JQuery<HTMLElement>

      the source element where to start the search (e.g. required for @form).

    • expressions: string

      A search expression with one or multiple components to resolve.

    Returns string[]

    A list of IDs with the resolved components.

  • resolveComponentsAsSelector(source: JQuery<HTMLElement>, expressions: string | HTMLElement | JQuery<HTMLElement>): JQuery<HTMLElement>
  • 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

    • source: JQuery<HTMLElement>

      the source element where to start the search (e.g. required for @form).

    • expressions: string | HTMLElement | JQuery<HTMLElement>

      A search expression with one or multiple components to resolve.

    Returns JQuery<HTMLElement>

    A list with the resolved components.

  • 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