Lifecycle hooks for a custom toolbar color picker.

interface MTextToolbarColorPickerInstance {
    dispose?: () => void;
    setTheme?: (theme: MTextToolbarTheme) => void;
    setValue?: (hexColor: string) => void;
}

Properties

dispose?: () => void

Cleanup mounted resources when toolbar is disposed.

setTheme?: (theme: MTextToolbarTheme) => void

Sync picker UI when toolbar theme changes.

setValue?: (hexColor: string) => void

Sync picker UI when editor format changes.