RadioField component renders a radio input field with a label.

  • Parameters

    • props: IRadioFieldProps<any, any> & IRadioFieldPrivate<any>

      The props object containing the following properties:

      Interface for defining props of a radio field component.

      • Optionaldisabled?: boolean

        Represents the 'disabled' property of a field.

        The 'disabled' property determines whether a field is disabled or not. If set to true, the field will be disabled and the user will not be able to interact with it.

        The type of data passed to the field.

        The type of payload received by the field.

      • OptionalgroupRef?: (element?: null | HTMLDivElement) => void

        Represents a reference to a group in a field object.

      • OptionalradioValue?: string

        Represents the radio value of a field.

      • Optionalreadonly?: boolean

        Type definition for the "readonly" property of a field.

        This property represents the "readonly" attribute of a field. It is used to indicate whether a field is read-only or not.

        The value of this property is derived from the "IField" interface in the "Data" module and the "Payload" type.

      • Optionaltitle?: string

        Type definition for the "title" property of an object. It is a generic type that picks the "title" property from a given object type.

        The object type from which to pick the "title" property.

        The data type of the object.

        The payload type of the object.

      Represents a private interface for a radio field.

      • Optionalname?: string
      • onChange: (v: any, config?: { skipReadonly?: boolean }) => void
      • value: any

    Returns Element

    • The rendered RadioField component.

Properties

Properties

displayName: string