picyka Posted May 10, 2012 Share 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 Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted May 10, 2012 Administrators Share Posted May 10, 2012 See our MegaDemo. Quote Link to comment Share on other sites More sharing options...
picyka Posted May 10, 2012 Author Share Posted May 10, 2012 sorry, more encontri only thing that was setting a theme CurrentTheme: = 'blue'; I found nothing feeding the property CustomCSS Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted May 11, 2012 Administrators Share Posted May 11, 2012 You can try loading CunstomCSS in below event. procedure TUniServerModule.UniGUIServerModuleBeforeInit(Sender: TObject); begin end; Quote Link to comment Share on other sites More sharing options...
zilav Posted May 11, 2012 Share 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 Link to comment Share on other sites More sharing options...
picyka Posted May 11, 2012 Author Share Posted May 11, 2012 Thank you guys! Quote Link to comment Share on other sites More sharing options...
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.