Skip to main content

getWebformElementAttribute

Callable

  • getWebformElementAttribute(attributeName: string, element: WebformElement): string | undefined

  • Get and return attribute from array of WebformAttributes on a WebformElement.


    Parameters

    • attributeName: string

      name of the attribute to find.

    • element: WebformElement

      list of attributes to search.

    Returns string | undefined

    Returns value of attribute if found or undefined.