erich.wanker Posted February 11, 2016 Share Posted February 11, 2016 What make i wrong? i want to add css-class to created UniPanel: meine_marker[x]:=TUniPanel.Create(self); meine_marker[x].ClientEvents.Enabled:=true; meine_marker[x].ClientEvents.ExtEvents.Values['beforerender']:='function(sender, eOpts){ sender.addClass("abgerundet_marker");}'; thanX for suggestions Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 11, 2016 Share Posted February 11, 2016 Hi, Try: meine_marker[x].ClientEvents.ExtEvents.Values['beforerender']:='function beforerender(sender, eOpts){ sender.addClass("abgerundet_marker");}'; Best regards. Quote Link to comment Share on other sites More sharing options...
erich.wanker Posted February 11, 2016 Author Share Posted February 11, 2016 doesn´t work ... but i found a solution: UniSession.AddJS(meine_marker[x].JSName + '.addCls(''abgerundet_marker'');'); ThanX for help Nice greetings from: http://www.gasteinertal.com/webcam/badhofgastein.html 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.