Hello,
I'm writing a new component that works well with the Adapt-Framework.
I can successfully upload the component in the Authoring and add it to a block, but as soon as a double click on the component to go to the editing form and fill the data (defined in the schema) I get the following error:
"constructorFn is not a constructor"
Below the schema (as attachment too)... Thanks!
{
"type":"object",
"$schema": "http://json-schema.org/draft-04/schema",
"id": "http://jsonschema.net",
"$ref": "http://localhost/plugins/content/component/model.schema",
"globals": {
"ariaRegion": {
"type": "string",
"required": true,
"default": "",
"inputType": "Text",
"validators": [],
"translatable": true
}
},
"properties":{
"_supportedLayout": {
"type": "string",
"required": true,
"enum": ["full-width", "half-width", "both"],
"default": "both",
"editorOnly": true
},
"instruction": {
"type": "string",
"required": false,
"default": "",
"inputType": "Text",
"validators": [],
"help": ""
},
"apiKey": {
"type": "string",
"required": true,
"title": "API Key",
"default": "XXXXXXXX",
"inputType": "Text",
"validators": [],
"help": ""
},
"language": {
"type": "string",
"required": true,
"title": "Language",
"default": "en",
"inputType": "Text",
"validators": [],
"help": ""
},
"uniqueName": {
"type": "string",
"required": true,
"title": "Unique name",
"default": "MyName",
"inputType": "String",
"validators": [],
"help": ""
},
"mapHeight": {
"type": "number",
"required": true,
"title": "Height (rem)",
"default": 30,
"inputType": "Number",
"validators": [],
"help": ""
},
"enableCompletionOnClick": {
"type": "boolean",
"title": "Enable completion on click",
"default": true,
"inputType": {"type": "Boolean", "options": [true, false]},
"validators": [],
"help": ""
},
"_items": {
"type": "array",
"required": true,
"title": "Places",
"items": {
"type": "object",
"required": true,
"properties": {
"address": {
"type": "string",
"required": true,
"inputType": "Text",
"title": "Address",
"default": "",
"validators": [],
"help": "",
"translatable": false
},
"title": {
"type": "string",
"required": true,
"inputType": "Text",
"title": "Title",
"default": "",
"validators": [],
"help": "",
"translatable": false
},
"content": {
"type": "string",
"required": false,
"inputType": "TextArea",
"title": "Content",
"default": "",
"validators": [],
"help": "",
"translatable": true
}
}
}
}
}
}