mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 20:31:31 +02:00
Add label attribute to valueWidget to support most read-only widgets
This commit is contained in:
parent
fa30d335e3
commit
a7110e4912
@ -25,6 +25,13 @@
|
|||||||
var et2_valueWidget = et2_baseWidget.extend({
|
var et2_valueWidget = et2_baseWidget.extend({
|
||||||
|
|
||||||
attributes: {
|
attributes: {
|
||||||
|
"label": {
|
||||||
|
"name": "Label",
|
||||||
|
"default": "",
|
||||||
|
"type": "string",
|
||||||
|
"description": "The label is displayed by default in front (for radiobuttons behind) each widget (if not empty). If you want to specify a different position, use a '%s' in the label, which gets replaced by the widget itself. Eg. '%s Name' to have the label Name behind a checkbox. The label can contain variables, as descript for name. If the label starts with a '@' it is replaced by the value of the content-array at this index (with the '@'-removed and after expanding the variables).",
|
||||||
|
"translate": true
|
||||||
|
},
|
||||||
"value": {
|
"value": {
|
||||||
"name": "Value",
|
"name": "Value",
|
||||||
"description": "The value of the widget",
|
"description": "The value of the widget",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user