Function showAsRequired

  • Indicates whether to mark a field as required.

    Parameters

    • required: boolean

      whether the label belongs to a control which is required

    • hideRequiredAsterisk: boolean

      applied UI Schema option

    Returns boolean

    should the field be marked as required