mhmda Posted March 15, 2017 Share Posted March 15, 2017 There is no clientevents (I know this is a menu) but I want to assign a css class to it, how can I do that? Link to comment Share on other sites More sharing options...
Sherzod Posted March 15, 2017 Share Posted March 15, 2017 Hi Mohammad, You can try to use like this: type TXPopupMenu = class(TUniPopupMenu) end; procedure TMainForm.UniFormReady(Sender: TObject); begin with TXPopupMenu(UniPopupMenu1).MenuControl.JSInterface do begin JSConfig('cls', ['test']); JSConfig('bodyCls', ['test1']); JSConfig('disabledCls', ['test2']); JSConfig('headerOverCls', ['test3']); JSConfig('iconCls', ['test4']); JSConfig('overCls', ['test5']); end; end; Best regards. 3 Link to comment Share on other sites More sharing options...
mhmda Posted March 17, 2017 Author Share Posted March 17, 2017 Thank you very much... 1 Link to comment Share on other sites More sharing options...
GerhardV Posted March 17, 2017 Share Posted March 17, 2017 Is there something similar for TUniMainMenu? Link to comment Share on other sites More sharing options...
Sherzod Posted March 17, 2017 Share Posted March 17, 2017 Hi, Is there something similar for TUniMainMenu? We will try to analyze. Best regards. Link to comment Share on other sites More sharing options...
delagoutte Posted August 4, 2017 Share Posted August 4, 2017 hello, If i would do the same thing but for each item of unipopupmenu. how can i do this ? I would define different iconcls for my item menu Link to comment Share on other sites More sharing options...
Recommended Posts