Add Button Icon to dashboard

Wow, great approach again there.
It is very helpful to me. The last thing is that i need to close all the groups instead of toggle them because this makes that if i have a group open it closes and viceversa.

Thanks again!

In the toggle-button you have to find something which tells you if it's collapsed or not. I found the icon classname (fa fa-caret-down, fa fa-caret-up). In the ui-template node exchange this function:

    function toggleGroups(){
        let toggleButtons = angular.element('.nr-dashboard-cardcarat');
        for(let i=0; i<toggleButtons.length; i++){
            if(toggleButtons[i].firstElementChild.className == 'fa fa-caret-up'){
                toggleButtons[i].click();
            };
        }
    }

Thanks a lot!

You're welcome!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.