Jump to content

TUnimMenu - Scrollable - How ?


andyhill

Recommended Posts

Can someone please show me how to make a TUnimMenu (Menu) scrollable - Thanks.

 

  UniSession.AddJS('Ext.Viewport.setMenu('+
               '' + Menu.JSName + ',' +
               '{ '+
               '  scrollable: true '+
               '});');
 
Link to comment
Share on other sites

Hi,

 

One possible solution, can you try this?:

procedure TMainmForm.UnimFormCreate(Sender: TObject);
begin
  UniSession.AddJS('Ext.onReady(function(){'+ Menu.JSName +'.setConfig({scrollable:"vertical", width:"20%"});})');
end;

Best regards,

Link to comment
Share on other sites

×
×
  • Create New...