erich.wanker Posted February 11, 2016 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
Sherzod Posted February 11, 2016 Posted February 11, 2016 Hi, Try: meine_marker[x].ClientEvents.ExtEvents.Values['beforerender']:='function beforerender(sender, eOpts){ sender.addClass("abgerundet_marker");}'; Best regards. Quote
erich.wanker Posted February 11, 2016 Author 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
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.