picyka Posted May 10, 2012 Posted May 10, 2012 I can load the CSS at runtime? where would be the most correda to load? in the future want to change the style I can do this without recompiling the application. Thank you. Quote
Administrators Farshad Mohajeri Posted May 10, 2012 Administrators Posted May 10, 2012 See our MegaDemo. Quote
picyka Posted May 10, 2012 Author Posted May 10, 2012 sorry, more encontri only thing that was setting a theme CurrentTheme: = 'blue'; I found nothing feeding the property CustomCSS Quote
Administrators Farshad Mohajeri Posted May 11, 2012 Administrators Posted May 11, 2012 You can try loading CunstomCSS in below event. procedure TUniServerModule.UniGUIServerModuleBeforeInit(Sender: TObject); begin end; Quote
zilav Posted May 11, 2012 Posted May 11, 2012 http://stackoverflow.com/questions/351633/how-do-i-load-css-rules-dynamically-in-webkit-safari-chrome Wrap that code in UniSesion.AddJS('...') and you can load css in any events. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.