Problem/Motivation
There is no way to trigger JavaScript functions based on DHTML Menu events.
Use case: A DHTML Menu is displayed in a layout that utilises "sticky" positioning so it is always visible. JavaScript used to achieve the sticky positioning calculates the height of the menu when the page loads. If a menu item is expanded, the calculated height of the menu is now incorrect breaking the display of the menu.
If DHMTL Menu triggered an event when the expand/collapse action is complete, a recalculation of the height can be tied to that event.
Proposed resolution
Introduce a custom JavaScript event when the animate function is complete using JQuery's .trigger() function
Remaining tasks
Create more custom events for all relevant DHTML Menu events
User interface changes
None
API changes
None
Data model changes
None
Comment | File | Size | Author |
---|---|---|---|
#2 | trigger-custom-event-2792729.patch | 786 bytes | ajf__ |
Comments
Comment #2
ajf__ CreditAttribution: ajf__ commented