You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by Maxwell <mc...@gmail.com> on 2010/12/08 03:02:52 UTC

Removing a gadget from container.

Is there a way similar to method, shindig.container.addGadget to remove     gadgets? 

I am doing with jquery delete() right now, but a method in contained would be better.

Cheers
Maxwell.

Sent from my iPhone

Re: Removing a gadget from container.

Posted by Maxwell <mc...@gmail.com>.
Do not have the common container on the shindig 2 release, so I did checkout from trunk (3.0 snapshot) and tried the example, the close function it's not implemented in the common container.



Sent from my iPhone

On 08/12/2010, at 02:17, Han Nguyen <hn...@us.ibm.com> wrote:

> Maxwell, look in content/samplecontainer/commoncontainer/ for a simple 
> sample built on JQuery and the new common container APIs Michael 
> mentioned. We're currently working on navigate to views for that containe, 
> feel free jump in and add your samples there.
> 
> Michael, I'm not sure if I have the right setup for calling 
> navigateGadget() to navigate from home/default to a different view. 
> NavigateGadget to canvas code below currently doesn't change the view nor 
> throw any error. 
> What are possible settings for "renderParams" to navigateGadget to canvas 
> view? Thanks for any pointer on this.
>   ...
>   viewParms[shindig.container.ContainerRender.VIEW] = "canvas";
>   //get gadgetSite
>   //get gadgetSpec
>   CommonContainer.navigateGadget(gadgetSite, gadgetSpec, viewParms, 
> renderParms);//CommonContainer is shindig.container.Container
> 
> 
> 
> 
> From:   Michael Hermanto <mh...@gmail.com>
> To:     dev@shindig.apache.org
> Date:   12/07/2010 09:29 PM
> Subject:        Re: Removing a gadget from container.
> 
> 
> 
> Aside, presumably, this is the old features/shindig.container, and not
> features/container (common container). In the later, we have closeGadget()
> in addition to navigateGadget().
> 
> On Tue, Dec 7, 2010 at 6:02 PM, Maxwell <mc...@gmail.com> wrote:
> 
>> 
>> Is there a way similar to method, shindig.container.addGadget to remove
>> gadgets?
>> 
>> I am doing with jquery delete() right now, but a method in contained 
> would
>> be better.
>> 
>> Cheers
>> Maxwell.
>> 
>> Sent from my iPhone
> 

Re: Removing a gadget from container.

Posted by Han Nguyen <hn...@us.ibm.com>.
Maxwell, look in content/samplecontainer/commoncontainer/ for a simple 
sample built on JQuery and the new common container APIs Michael 
mentioned. We're currently working on navigate to views for that containe, 
feel free jump in and add your samples there.

Michael, I'm not sure if I have the right setup for calling 
navigateGadget() to navigate from home/default to a different view. 
NavigateGadget to canvas code below currently doesn't change the view nor 
throw any error. 
What are possible settings for "renderParams" to navigateGadget to canvas 
view? Thanks for any pointer on this.
   ...
   viewParms[shindig.container.ContainerRender.VIEW] = "canvas";
   //get gadgetSite
   //get gadgetSpec
   CommonContainer.navigateGadget(gadgetSite, gadgetSpec, viewParms, 
renderParms);//CommonContainer is shindig.container.Container
 



From:   Michael Hermanto <mh...@gmail.com>
To:     dev@shindig.apache.org
Date:   12/07/2010 09:29 PM
Subject:        Re: Removing a gadget from container.



Aside, presumably, this is the old features/shindig.container, and not
features/container (common container). In the later, we have closeGadget()
in addition to navigateGadget().

On Tue, Dec 7, 2010 at 6:02 PM, Maxwell <mc...@gmail.com> wrote:

>
> Is there a way similar to method, shindig.container.addGadget to remove
> gadgets?
>
> I am doing with jquery delete() right now, but a method in contained 
would
> be better.
>
> Cheers
> Maxwell.
>
> Sent from my iPhone


Re: Removing a gadget from container.

Posted by Michael Hermanto <mh...@gmail.com>.
Aside, presumably, this is the old features/shindig.container, and not
features/container (common container). In the later, we have closeGadget()
in addition to navigateGadget().

On Tue, Dec 7, 2010 at 6:02 PM, Maxwell <mc...@gmail.com> wrote:

>
> Is there a way similar to method, shindig.container.addGadget to remove
> gadgets?
>
> I am doing with jquery delete() right now, but a method in contained would
> be better.
>
> Cheers
> Maxwell.
>
> Sent from my iPhone