Function computeLabel

  • Adds an asterisk to the given label string based on the required parameter.

    Parameters

    • label: string

      the label string

    • required: boolean

      whether the label belongs to a control which is required

    • hideRequiredAsterisk: boolean

      applied UI Schema option

    Returns string

    the label string