Interface: IPresetComponentOptions
Interface for configuring preset component options.
Properties
components?
optionalcomponents?:PresetComponent[]
The default preset components.
disable?
optionaldisable?:boolean
The flag to disable the preset component feature.
disableCreation?
optionaldisableCreation?:boolean
The flag to disable the creation of preset components.
disableRemoving?
optionaldisableRemoving?:boolean
The flag to disable the removing of preset components.
localStoragePrefix?
optionallocalStoragePrefix?:string
The prefix for localStorage key.
onCreate?
optionalonCreate?: (preset) =>void
The callback function called when a new preset component is created.
Parameters
preset
Returns
void
onRemove?
optionalonRemove?: (name) =>void
The callback function called when a preset component is removed.
Parameters
name
string
Returns
void