CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

TIWCGJQVertMenuItem enhancements

Suggest new components/features

by davenovo » 14 Mar 2018 06:56

It would be really helpful if the TIWCGJQVertMenuItem behaved more like a standard TMenuItem. It could have its own OnClick, its own Action property etc.

The standard today is to have the business logic of the form in a separate "viewModel". Having Actions is key to doing that, as the ViewModel can simply change the Action's properties without worrying what visual control the action is bound to. The VertMenu it a great control, but having finer grained controls over the menu items via actions would be very helpful.
davenovo
 
Posts: 98
Joined: 03 Mar 2018 19:11

by Alexander Bulei » 14 Mar 2018 18:08

Hi davenovo,

Unfortunately, it's not possible due the jquery plugin architecture. The plugin have only one listener for click (for all items).

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by davenovo » 14 Mar 2018 18:22

Hello,

Can you fake it? i.e. give each TIWCGJQVertMenuItem an .Action property.
You then handle the click event of the Menu, figure out which menu item was clicked, then call Action.Execute on the menuItems action.

The .Action could still be used to control visibility, enabled, caption etc of each menu item.
davenovo
 
Posts: 98
Joined: 03 Mar 2018 19:11


Return to Suggestions

cron

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.