[REF] *: BS4, adapt the label component structure
The '.label' elements have been replaced by '.badge' elements without the 'badge-pill' class.
This commit is contained in:
@@ -1783,7 +1783,7 @@ var LabelSelection = AbstractField.extend({
|
||||
_render: function () {
|
||||
this.classes = this.nodeOptions && this.nodeOptions.classes || {};
|
||||
var labelClass = this.classes[this.value] || 'primary';
|
||||
this.$el.addClass('label label-' + labelClass).text(this._formatValue(this.value));
|
||||
this.$el.addClass('badge badge-' + labelClass).text(this._formatValue(this.value));
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user