bindable css

Is it possible to have a bindable toggle that changes the css between two components? For example let’s say we have a pin and an unpin popup with a toggle. that looks like:

{
        view: "toggle",
        type: "iconButton",
        id: "pin",
        offIcon: "pause",
        onIcon: "play",
        offLabel: "Pause",
        onLabel: "Play"
} 

and the other is the same structure but id is “unpin”. If I were to include a css tag in the data object for both objects, could I make it some bindable variable so that when you click the toggle button on either component, that would apply the css class to both components?

Hello,
if you want to bind toggles, you need to use set/getValue methods
Here is an example:https://webix.com/snippet/3244aea0

if you want to bind css on toggles, so here you need to use addCss method which is applied CSS class to a component item
Here is an example: https://webix.com/snippet/50863e53