Interface ToolbarControlPropertyLocalizer

Handle the localization of control properties for a given property type.

interface ToolbarControlPropertyLocalizer {
    createResources: ((propertyKey: string, control: EntityToolbarItem) => Record<string, string>);
    localizeControlAttribute: ((propertyKey: string, control: EntityToolbarItem, resources: Record<string, string>) => void);
    localizerType: "toolbar";
    propertyType: string;
}

Hierarchy (view full)

Properties

createResources: ((propertyKey: string, control: EntityToolbarItem) => Record<string, string>)

Generate resources to be included when the toolbar item is saved.

Type declaration

    • (propertyKey, control): Record<string, string>
    • Parameters

      Returns Record<string, string>

      the resource keys and values for the given toolbar item property

localizeControlAttribute: ((propertyKey: string, control: EntityToolbarItem, resources: Record<string, string>) => void)

Use generated resource keys & values to localize the given control property.

Type declaration

    • (propertyKey, control, resources): void
    • Parameters

      • propertyKey: string

        the control attribute to be localized

      • control: EntityToolbarItem

        the toolbar item

      • resources: Record<string, string>

        toolbar item resources

      Returns void

localizerType

Control type to be localized,

propertyType: string

Property type to be localized. (the type that the property editor is registered against)