How to change button's style in a form object


#1

hello,
I want to change button’s style,I used className to changed,but,it’s always not changed.
please give me one sample


#2

Hi

There is no native behavour for this. You have to edit dhtmlx.css manualy.


#3

Can you change the documentation ?
Because this tells us about the className attribute…

docs.dhtmlx.com/form__controls_list.html#button


#4

Well… :slight_smile:

to change button css permanently you have to edit dhtmlx.css or add your custom one. there is also possibility to attach some css directly to button’s parent container but in this case you also need to add css. but there is no direct functionality like button.setStyle(“good_looking_button”) or button.setStyle(“big_red_cancel”)

would you like to get more explanations with an example?


#5

How to change button text color?
Please explain with example.