Options
All
  • Public
  • Public/Protected
  • All
Menu

Module utils/ControlUtils

Functions

_logIfBothTrue

  • _logIfBothTrue(customCanHandle: boolean, builtInCanHandle: boolean): void
  • Parameters

    • customCanHandle: boolean
    • builtInCanHandle: boolean

    Returns void

evaluateInputHandlers

  • Parameters

    Returns Promise<boolean>

findControlById

  • findControlById(controls: Control[], id: string | undefined): Control | undefined
  • Selects the first control with specific ID from an array.

    Behavior:

    • implemented by linear search.
    • if more than one control matches, the first is returned.
    • if parameter id is undefined, returns undefined.
    • if there is no control with matching id, returns undefined.

    Parameters

    • controls: Control[]

      Controls

    • id: string | undefined

    Returns Control | undefined

    • The matching childControl, or undefined if not present.