Solved

How do you change css on warning confirmation buttons?

  • 12 June 2019
  • 2 replies
  • 126 views

Userlevel 4
Badge
  • AIMMS Implementation Partner
  • 57 replies
Over here y'all explained how to change the css on dialog page buttons. But that doesn't trickle down to my confirmation/warning buttons.

How can I change those?

Thanks!
icon

Best answer by Pratap Kumble 18 June 2019, 15:18

View original

2 replies

Userlevel 5
Badge +6
I changed the background-color for the css class:

.theme-aimms .ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset > .ui-button

Maybe there is an easier way, however it worked for me.
Userlevel 4
Badge +2
Hi @MathFour, If your taking about the buttons for RequestPerformWebUIDialog just follow the steps.

eg: Lets say I call the webui::RequestPerformWebUIDialog("Transport Calculated", "Total cost saved is 432,340",MyActions,''); where MyActions is the set that has the labels for the buttons.

The set MyActions is defined as follows:

Set MyActions {
Definition: data {'ok','cancel','disregard'};
}

When you call the message dialog each button in the will have a class "action-[button label]". So in my example action-ok, action-cancel and action-disregard.


In your css file just add styles for these classes.



You will see the following result.



Hope this is what you were looking for. Do let me know if you have any questions.

Thanks.

Regards,
Pratap

Reply


Didn't find what you were looking for? Try searching on our documentation pages:

AIMMS Developer & PRO | AIMMS How-To | AIMMS SC Navigator