Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion How to Use the ActivablePanel
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
tan  
View profile  
 More options Sep 16 2010, 1:09 pm
From: tan <t...@enonic.com>
Date: Thu, 16 Sep 2010 10:09:20 -0700 (PDT)
Local: Thurs, Sep 16 2010 1:09 pm
Subject: Re: How to Use the ActivablePanel
No, running the code above, the tab does not have the mini menu at
all.

Thanks for the replies here,

Thomas

On Sep 16, 5:44 am, John J Barton <johnjbar...@johnjbarton.com> wrote:

> Does the panel tab mini-menu have enable/disable and does that part
> work?

> jjb

> On Sep 15, 2:17 pm, tan <t...@enonic.com> wrote:

> > Yes, a typo from my side, there is also a wrongly placed comma in the
> > last method in MyPanelModel ;)

> > After removing these bugs and I run the code, the panel is created and
> > looks OK, but I expected the Fb tab to be disabled when I choose
> > Disable All Panels from the Firebug menu. This does not happen.

> > I may miss something here

> > Thomas

> > On Sep 15, 10:55 pm, Pedro Simonetti Garcia <pedrosimone...@gmail.com>
> > wrote:

> > > Hi there,

> > > Just a small thing I have noticed:

> > >  name : myPanel,

> > > should be

> > >  name : "myPanel",

> > > Otherwise it seems to be correct.

> > > Pedro Simonetti.

> > > 2010/9/15 tan <t...@enonic.com>:

> > > > Hi again

> > > > No, it did not work

> > > > Here is an outline of the code

> > > > Thomas

> > > > FBL.ns(function() { with ( FBL ) {

> > > > function MyPanel() {}
> > > > MyPanel.prototype = extend( Firebug.ActivablePanel,
> > > > {
> > > >    name : myPanel,
> > > >    title : "My Panel",

> > > >    initialize : function()
> > > >    {
> > > >        Firebug.ActivablePanel.initialize.apply( this, arguments );
> > > >    },

> > > >    shutdown : function()
> > > >    {
> > > >        Firebug.ActivableModule.shutdown.apply( this, arguments );
> > > >    },

> > > >    destroy : function( state )
> > > >    {
> > > >        Firebug.unregisterUIListener(this);
> > > >        Firebug.ActivablePanel.destroy.apply( this, arguments );
> > > >    },

> > > >    enablePanel: function(module)
> > > >    {
> > > >        Firebug.ActivablePanel.enablePanel.apply( this, arguments );
> > > >    },

> > > >    disablePanel: function(module)
> > > >    {
> > > >        Firebug.ActivablePanel.disablePanel.apply( this, arguments );
> > > >    }
> > > > });

> > > > Firebug.MyPanelModel = extend( Firebug.ActivableModule,
> > > > {
> > > >    initialize: function()
> > > >    {
> > > >        Firebug.ActivableModule.initialize.apply( this, arguments );
> > > >    },

> > > >    initContext: function( context, persistedState )
> > > >    {
> > > >        Firebug.ActivableModule.initContext.apply( this, arguments );
> > > >    },

> > > >    showContext: function( browser, context )
> > > >    {
> > > >        Firebug.ActivableModule.showContext.apply( this, arguments );
> > > >    },

> > > >    loadedContext : function( context )
> > > >    {
> > > >    },

> > > >    showPanel : function( browser, panel )
> > > >    {
> > > >    },

> > > >    addStyleSheet : function( doc )
> > > >    {
> > > >    },

> > > >    reattachContext : function( browser, context )
> > > >    {
> > > >    },
> > > > });

> > > > /* Domplate code */

> > > > /*
> > > >    Registration
> > > > */
> > > > Firebug.registerPanel( MyPanel );
> > > > Firebug.registerActivableModule( Firebug.MyPanelModel );

> > > > }});

> > > > On Sep 14, 10:59 pm, John J Barton <johnjbar...@johnjbarton.com>
> > > > wrote:
> > > >> On Sep 14, 12:04 pm, tan <t...@enonic.com> wrote:

> > > >> > Hi

> > > >> > Are there any information about how to use the ActivablePanel?

> > > >> > My guess right now is that using ActivablePanel would create a panel
> > > >> > that can be activated globally (Global: Activate/Disable All Panels)

> > > >> > My first naive try was to use this

> > > >> > MyPanel.prototype = extend( Firebug.ActivablePanel,

> > > >> If you implement initialize() then you need to propagate it to the
> > > >> parent:
> > > >> Firebug.ActivablePanel.initialize.apply(this, arguments);

> > > >> And you need to register your new panel:
> > > >> Firebug.registerPanel(NetPanel);

> > > >> Does this help?
> > > >> jjb

> > > >> > ...

> > > >> > But I guess it needs some more configuration ;)

> > > >> > I have tried to look in the Fb source, but have not quite figured it
> > > >> > out yet.

> > > >> > So, the question is how do we use the Activation thing?

> > > >> > Thanks in advance

> > > >> > Best regards,
> > > >> > Thomas

> > > > --
> > > > You received this message because you are subscribed to the Google Groups "Firebug" group.
> > > > To post to this group, send email to firebug@googlegroups.com.
> > > > To unsubscribe from this group, send email to firebug+unsubscribe@googlegroups.com.
> > > > For more options, visit this group athttp://groups.google.com/group/firebug?hl=en.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.