Hi everyone.
Currently trying to make a custom dropdown, with some test data, however the defaultData does not come up in the property type. Has anyone tried doing this in v14/v15. And can point towards if im making a mistake or what it is 🙂 I'm new to typescript and extending backoffice, so its definitely plausible that im making errors 😄
import {ManifestPropertyEditorUi} from "@umbraco-cms/backoffice/extension-registry";
import {default as manifestModal} from "./Modal/manifest";
export const manifestPropertyEditorUi: ManifestPropertyEditorUi = {
type: "propertyEditorUi",
alias: "xxx.tag.propertyEditor",
name: "Tag Property Editor",
element: () => import("./tag-property-editor-element.ts"),
meta: {
label: "Tag Property Editor",
icon: "icon-tag",
group: "generic",
propertyEditorSchemaAlias: "Umbraco.Plain.Json",
settings: {
properties: [
{
alias: "group",
label: "Group",
description: "Pick the group",
propertyEditorUiAlias: "Umb.PropertyEditorUi.Dropdown",
weight: 200,
},
{
alias: "placeholder",
label: "Placeholder text",
description: "A nice placeholder description to help out our editor!",
propertyEditorUiAlias: "Umb.PropertyEditorUi.TextBox"
},
],
defaultData: [
{
alias: "group",
value: ['First Option', 'Second Option', 'Third Option']
},
{
alias: "placeholder",
value: "Write a suggestion"
}
]
}
}
}
export default [manifestPropertyEditorUi, ...manifestModal]