Hello!
I've tested some things to change color etc. of the buttons in TUnimSegmentedButton. This is my result:
JSInterface.JSAddListener('painted',JSControl.JSFunction('me', 'me.element.select(".x-body-el").elements.forEach(function(el){el.style["font-size"] = "24px"});'));
JSInterface.JSAddListener('painted',JSControl.JSFunction('me', 'me.element.select(".x-body-el").elements.forEach(function(el){el.style["font-weight"] = "bold"});'));
JSInterface.JSAddListener('painted',JSContr
Hello, Please use below solution.
Form-> OnCreate
procedure TMainmForm.UnimFormCreate(Sender: TObject);
begin
with UnimSegmentedButton1, JSInterface do
JSAddListener('painted', JSFunction('a', 'a.getPressedButtons()[0].innerElement.dom.style.backgroundColor= "#00AA00";'));
end;
UnimSegmentedButton -> ClientEvents -> ExtEvents -> toggle
function toggle(sender, button, isPressed, eOpts)
{
if (isPressed){
button.innerElement.dom.style.backgroundColor= '#00AA