Meet us at Print 18. Chicago, IL. Sept. 30 - Oct. 2.

IButton Interface

A structure defining configuration of the Toolbox using the buttons array.

example

clientConfig.json

"Toolbox": {
    "buttons": [
        {
            "translationKey": "Toolbox.TEXT",
            "translationKeyTitle": "Toolbox.TITLE_ADD_TEXT",
            "iconClass": "cc-icon-add-text",
            "buttons": ["Text", "BoundedText", "RichText"]
        },
        "Image"
    ]
}

Properties

buttons

buttons: ButtonType []

The array containing button definitions.

Optional iconClass

iconClass: string

The class of the button icon.

Optional itemConfig

A structure containing the configuration of new design elements. For an example, you can refer to ILocationDefaultConfig or IBarcodeDefaultConfig.

Optional translationKey

translationKey: string

The translation key of the button caption. The corresponding string should be defined in the ~\Configuration\translations.json file.

Optional translationKeyTitle

translationKeyTitle: string

The translation key of the button tooltip. The corresponding string should be defined in the ~\Configuration\translations.json file.