serenity-is / Serenity

Business Apps Made Simple with Asp.Net Core MVC / TypeScript
https://serenity.is
MIT License
2.6k stars 802 forks source link

Conditional Dialog button Formatting #4181

Closed MaziarSangi closed 5 years ago

MaziarSangi commented 5 years ago

Hello Happy New Year I want to change the style of toolbar button in some condition? How to access Toolbarbutton css in xDialog.ts file?

dfaruque commented 5 years ago

this.toolbar.element is a jquery element so you can manipulate it accordingly

MaziarSangi commented 5 years ago

@dfaruque Thank you Can you plz give me an Example how to change style of one of toolbarbutton in xDialog.ts?

dfaruque commented 5 years ago

what do you mean by style? be specific, please.

MaziarSangi commented 5 years ago

@dfaruque I want to change background-color of one of toolbarbutton in afterloadEntity() in case of some conditions. Can you please give an example ?