Interface Control<ControlTypeAttributes>

An object containing data for a control.

interface Control<ControlTypeAttributes> {
    attrs: {
        category: string;
        id: string;
        states: {
            disabled?: boolean;
            hidden?: boolean;
            readOnly?: boolean;
            required?: boolean;
        };
        type: string;
    };
    typeAttributes: ControlTypeAttributes;
}

Type Parameters

Properties

attrs: {
    category: string;
    id: string;
    states: {
        disabled?: boolean;
        hidden?: boolean;
        readOnly?: boolean;
        required?: boolean;
    };
    type: string;
}

The attributes of the control.

Type declaration

  • category: string
  • id: string

    The ID of the control on the template.

  • states: {
        disabled?: boolean;
        hidden?: boolean;
        readOnly?: boolean;
        required?: boolean;
    }

    The potential states of the control, as distinct from the current state of the control.

    • Optionaldisabled?: boolean
    • Optionalhidden?: boolean
    • OptionalreadOnly?: boolean
    • Optionalrequired?: boolean
  • type: string
typeAttributes: ControlTypeAttributes

The control's configuration object based on the configuration that is given in page designer.