Options to set up the toolbar widget registry

interface IOptions {
    defaultFactory: ((widgetFactory, widget, toolbarItem) => Widget);
}

Properties

Properties

defaultFactory: ((widgetFactory, widget, toolbarItem) => Widget)

Default toolbar widget factory

The factory is receiving 3 arguments:

Type declaration

    • (widgetFactory, widget, toolbarItem): Widget
    • Parameters

      • widgetFactory: string

        The widget factory name that creates the toolbar

      • widget: Widget

        The newly widget containing the toolbar

      • toolbarItem: IWidget

        The toolbar item definition

      Returns Widget

Returns

The widget to be inserted in the toolbar.