UNPKG

@pega/custom-dx-components

Version:

Utility for building custom UI components

115 lines (114 loc) 2.58 kB
{ "name": "Pega_DXIL_MyTextInput", "label": "My Text Input", "description": "My Text Input", "organization": "Pega", "version": "0.0.1-dev", "library": "DXIL", "allowedApplications": [], "componentKey": "Pega_DXIL_MyTextInput", "type": "Field", "subtype": "Text", "icon": "images/pz-text-input-active.svg", "properties": [ { "name": "label", "label": "Field label", "format": "TEXT", "required": true }, { "name": "readOnly", "label": "Edit mode", "format": "READONLY" }, { "label": "Column settings", "format": "GROUP", "visibility": "@VIEWTYPE == 'MultiRecordDisplayAsTable'", "properties": [ { "name": "columnWidth", "label": "Column width", "format": "SELECT", "source": [ { "key": "auto", "value": "Auto" }, { "key": "custom", "value": "Custom" } ] }, { "name": "width", "label": "Width (px)", "format": "NUMBER", "visibility": "$this.columnWidth == 'custom'" } ] }, { "label": "Input settings", "format": "GROUP", "visibility": "(!readOnly = true)", "properties": [ { "name": "placeholder", "label": "Placeholder", "format": "TEXT" }, { "name": "helperText", "label": "Helper text", "format": "TEXT" } ] }, { "label": "Conditions", "format": "GROUP", "properties": [ { "name": "required", "label": "Required", "format": "REQUIRED", "visibility": "(!readOnly = true)" }, { "name": "disabled", "label": "Disabled", "format": "DISABLED", "visibility": "(!readOnly = true)" }, { "name": "visibility", "label": "Visibility", "format": "VISIBILITY" } ] }, { "label": "Advanced", "format": "GROUP", "collapsible": true, "properties": [ { "name": "testId", "label": "Test ID", "format": "TEXT", "ignorePattern": "[^-_\\p{N}\\p{L}]", "includeAnnotations": false } ] } ], "defaultConfig": { "label": "@L $this.label", "detailFVLItem": true, "isFormWidth" : false, "isContainerWidth" : false } }