I have a button that adds and removes a filter, wondering if there is a way to change the label on it and change the hot on off when its clicked?
i shouldve clarified.. the buttons are created using JQuery
toolbarGroup.controls.push(
{
type: "BUTTON",
action: "escalated",
icon: "fa fa-check-circle-o",
id: "btn_esc",
iconBeforeLabel: true,
hot: false,
});