How to control a dashboard widget using ui_control

Hi all.

Is it possible to control just one widget using ui_control? I have two buttons in one group. I would like only one of these buttons to be displayed based on a boolean.

Thanks

If you put them in different groups it is possibe.

Or

You can use css to hide the switches

Read here Hide - show a group element - #2 by E1cid