The UI Support element allows you to define how your content property field will be presented in the CQL Builder.
When you define UI support for a field, then the CQL builder will include it in all CQL features in Confluence, including other CQL based macros.
See the content property key documentation for a complete content property example.
Example
1 2 3 4 5 6 7 8 9 10 11 12 13 14
{
"defaultOperator": "~",
"name": {
"value": "Content Type",
"i18n": "attachment.type.name"
},
"tooltip": {
"value": "Content Type Tooltip",
"i18n": "attachment.type.tooltip"
},
"dataUri": "/data/content-types",
"valueType": "string"
}
name
Type | |
Required | Yes |
Description | The name of this field as used by the CQL builder UI components. Represents a string that can be resolved via a localization properties file. You can use the same Example1 2 3 4
|
value |
| ||||||||
i18n |
|
valueType
Type | |
Required | Yes |
Allowed values |
|
Description | As well as providing a text field and allowing any entry, the UI support system provides a number of build in components that can enrich the user experience. These provide extra user interface components to allow setting or picking their value in an intuitive way. The type can be one of the following values:
|
dataUri
Type | |
Description | If provided, the CQL builder will provide a drop down and use this url to find the list of value values. This URL should return a json array of objects describing the valid options. 1 2 3 4 5 6
NOTE: since the call to this URL will be made from the user's browser, you need to enable CORS headers for responses to this resource.
Setting a |
defaultOperator
Type | |
Max length | 100 |
Description | The CQL builder will use this operator when constructing the CQL string. |
tooltip
Type | |
Description | The tooltip of this field as used by the CQL builder UI components. Represents a string that can be resolved via a localization properties file. You can use the same Example1 2 3 4
|
value |
| ||||||||
i18n |
|
Rate this page: