Page 1 of 1

Create On Click Event For Sub Items is Vert Menu

PostPosted: 28 Nov 2016 17:42
by amirrezaasadpour
hi , I read the last post , but i cant understand any things
can you guide me completely , How to Create an Event for the sub items in vert menu , i really need it , please help me
i don't know how to create event in Intraweb also , thanks a lot.

Re: Create On Click Event For Sub Items is Vert Menu

PostPosted: 29 Nov 2016 11:08
by Alexander Bulei
Hi amirrezaasadpour,

Code: Select all
How to Create an Event for the sub items in vert menu , i really need it


This component have general JQVertMenuOptions.OnClick event...
Implement that event, debug and check AParams...You will find "itemId"

i don't know how to create event in Intraweb also , thanks a lot.


Sorry, but we can't teach you...

Best Regards.

Re: Create On Click Event For Sub Items is Vert Menu

PostPosted: 31 May 2017 13:45
by fateh78
JQVertMenu should have separate OnClick event for each menuitem like JQMenu
if you used the general OnClick with "Ajax = False" ==> then the page will make full submit ==> VertMenu will return to its prior status ==> you can not reach the submenu items
Also this full page submit not needed when nothing to do (when you click main menu item)
..... tooo many problems i faced with vertmenu because of this

finally i make a workaround by putting this condition in the OnClick event :
JQVertMenu.JQVertMenuOptions.OnClick.Condition := 'submenu ==false';

please hear from dummies like us
Sousaaaaaaa :evil:

best regards

Re: Create On Click Event For Sub Items is Vert Menu

PostPosted: 31 May 2017 16:07
by Jorge Sousa
hi

Maybe it should support, but the jquery plugin doesn't and we cant do nothing about that.

its a nice trick the submenu==false

also you can use Argument itemid, to check what item was clicked, as you probably did.

Re: Create On Click Event For Sub Items is Vert Menu

PostPosted: 31 May 2017 21:45
by fateh78
i do not know about jacascript plugins
but i can understand that you only can encapsulate the javascript plugin properties and we can not add new props for the component

it will be a nice idea if you make a video to explain how cgdevtools comps work and teach us how to encapsulate other plugins
it will be a great video if you did :idea: :idea:

best wishes Sousa