use yh\mdc\components\Button; echo Button::one('Button1', ['spinner' => Button::SP_AUTO]) ->setId('button1') ->gray() ->render(); echo Button::one('Button2') ->setId('button2') ->render(); echo Button::one('Button3') ->setId('button3') ->raised() ->render();
app.controls.item('button1').disabled = true;