UNPKG

@sassoftware/vi-api

Version:
18 lines (17 loc) 868 B
export {}; /** * Determines whether the property editor is valid. * @callback PropertyApi~isPropertyEditorValid * @param {PropertyConfig} propertyConfig Configuration details relating to the custom property type. For example, required, type, and so on. * @param {string} propertyKey Key where this property's value is stored. * @param {Control | ToolbarPropertyControl} control The control. * @returns {boolean} true if valid, false if not. */ /** * Get metadata for the property editor. * @callback PropertyApi~getPropertyEditorMetadata * @param {PropertyConfig} propertyConfig Configuration details relating to the custom property type. For example, required, type, and so on. * @param {string} propertyKey Key where this property's value is stored. * @param {Control | ToolbarPropertyControl} control The control. * @returns {PageTemplateMetadata} */