Skip to forum content

Mif

— mystic javascript interface

You are not logged in. Please login or register.


Post new reply

Post new reply

Compose and post your new reply

You may use: BBCode Images Smilies

All fields labelled (Required) must be completed before the form is submitted.

Required information for guests



Captcha image. Turn pictures on to see it.
Required information
Optional post settings

Topic review (newest first)

1

I've partialy resolved the issue firing  onBeforeShow event into  show method.

2

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