OperatorButtonType: {
    classList?: string;
    disabled?: boolean;
    dropdowned?: boolean;
    icon?: string;
    onClick: Function;
    testValueAttribute?: string;
    title?: string;
    tooltip?: string;
}

The OperatorButtonType is a type for the operator buttons in the Operations formatter.

Type declaration

  • OptionalclassList?: string

    The class list of the button. You can set multiple classes here. For example, 'btn btn-primary'.

  • Optionaldisabled?: boolean

    If true, the button is disabled. If false, the button is enabled.

  • Optionaldropdowned?: boolean

    If true, the button is a dropdown button. If false, the button is a normal button.

  • Optionalicon?: string

    The icon of the button. You can use any valid FontAwesome icon class here. For example, 'fas fa-edit'.

  • onClick: Function

    The function that is called when the button is clicked. You can access the full record object while you define buttons in the OperationsFormatterConfigType.buttons function.

  • OptionaltestValueAttribute?: string

    The test value attribute of the button. If set, the button will have a test value attribute with this value to make e2e testing easier.

  • Optionaltitle?: string

    The title of the button.

  • Optionaltooltip?: string

    The tooltip of the button.