I have a button object like this
{
view: 'button',
type: 'icon',
paddingY: 8,
icon: 'fas fa-plus',
label: _labels.add,
id: 'add-button',
autowidth: true,
disabled: true,
click: function () {
//some code
}
},
This button is disabled. Later then I enable this button with:
$$(‘add-button’).config.disabled = false;
$$(‘add-button’).refresh();
But the icon get the color #aaaaaa because of this:
.webix_disabled_view.webix_control .webix_icon_btn, .webix_disabled_view.webix_control .webix_icon {
color: #aaaaaa;
}
This button still have the webix_disabled_view! :-/
What is the best way to get rid of this?
Thank you and
Have a wonderful christmas time
Michael