Manage named separator as label

issue8961
review262741032
This commit is contained in:
Cédric Krier
2020-01-24 00:25:30 +01:00
parent d39a1c2750
commit 078eead028
2 changed files with 11 additions and 2 deletions
+1
View File
@@ -1,3 +1,4 @@
* Manage named separator as label
* Add MultiSelection entry to Dict field
* Position new record based on order
* Reset display_size of TreeView when group is cleared or changed
+10 -2
View File
@@ -83,10 +83,10 @@ function eval_pyson(value){
if (this._mnemonics[name] && widget.labelled) {
var label = this._mnemonics[name];
label.el.uniqueId();
label.label_el.uniqueId();
widget.labelled.uniqueId();
widget.labelled.attr('aria-labelledby', label.el.attr('id'));
label.el.attr('for', widget.labelled.attr('id'));
label.label_el.attr('for', widget.labelled.attr('id'));
}
},
_parse_button: function(node, attributes) {
@@ -101,10 +101,18 @@ function eval_pyson(value){
this.container.add(image, attributes);
},
_parse_separator: function(node, attributes) {
var name = attributes.name;
if (name && (name == this.exclude_field)) {
this.container.add(null, attributes);
return;
}
var text = attributes.string;
var separator = new Sao.View.Form.Separator(text, attributes);
this.view.state_widgets.push(separator);
this.container.add(separator, attributes);
if (name) {
this._mnemonics[name] = separator;
}
},
_parse_label: function(node, attributes) {
var name = attributes.name;