Node | Description |
---|---|
sap.ui.integration.designtime.baseEditor.BaseEditor |
OverviewConfigurable JSON editor Example
sap.ui.require(["sap/ui/integration/designtime/baseEditor/BaseEditor"], function (Editor) { var oJson = { root: { context: { id: "404", name: "Kate", role: "End User" }, foo: { bar: true } } }; var oEditor = new Editor(); oEditor.setJson(oJson); oEditor.setConfig({ "context": "root/context", "properties" : { "name": { "label": "Name", "path": "name", "type": "string" }, "role": { "label": "Role", "path": "role", "type": "enum", "enum": ["Developer", "Key User", "End User"] }, "department": { "label": "Department", "path": "department", "type": "enum", "enum": ["Sales", "HR", "Development"], "visible": "{= ${context>/role} === 'Key User'}" } }, "propertyEditors": { "enum" : "sap/ui/integration/designtime/baseEditor/propertyEditors/enumStringEditor/EnumStringEditor", "string" : "sap/ui/integration/designtime/baseEditor/propertyEditors/stringEditor/StringEditor" } }); oEditor.attachJsonChange(function(oEvent) { var oJson = oEvent.getParameter("json"); // live change }) oEditor.placeAt("content"); }) |
sap.ui.integration.designtime.baseEditor.PropertyEditor |
Renders one of the property editors based on a specified |
sap.ui.integration.designtime.baseEditor.PropertyEditors |
Renders a group of property editors based on specified |
sap.ui.integration.designtime.baseEditor.util | |
sap.ui.integration.designtime.baseEditor.layout | |
sap.ui.integration.designtime.baseEditor.propertyEditor | |
sap.ui.integration.designtime.baseEditor.validator |
Method | Description |
---|