I've partialy resolved the issue firing onBeforeShow event into show method.
All fields labelled (Required) must be completed before the form is submitted.
You are not logged in. Please login or register.
Mifjs forum — Mif.Tree, Mif.Menu » Help » in the latest Mif.Menu how can I create a dynamic menu on show event » Post new reply
All fields labelled (Required) must be completed before the form is submitted.
I've partialy resolved the issue firing onBeforeShow event into show method.
Hello,
In the old Mif.Menu I used onShow to create dynamic menu on the fly.
With the code below It doesn't works :
contextMenu = new Mif.Menu({
onShow: function(e) {
var widget, target = e.target;
if (widget.getContextMenu) {
// getContextMenu method return json structure compatible with Mif.menu
this.load( widget.getContextMenu() );
}
}
}
}).attach('pageWrapper').load([
{
name: 'test'
}
])Note that If menu is empty 'show' event is never called and load method call into onShow trigger
don't do nothing because menu is already loaded.
What is the solution to achieve this ?
I've created another post related indirectly to this issue bease show event doesn't send context event when fired :
http://mifjs.net/forum/topic/203/
Thank you
Powered by PunBB