PDA

View Full Version : Invoking settings tool on a portlet on render?



abcdef
14 Jun 2010, 9:50 PM
Hello,

Id' like to invoke the settings tool on a portlet when its added to the portal. Is there way to simulate a click on the Gear button once the portlet is rendered? Is there another way to do this?

Thanks in advance..

CrazyEnigma
15 Jun 2010, 6:51 AM
You can create a function that both the settings button uses, and the programmatic logic uses.

abcdef
15 Jun 2010, 9:46 PM
Hey,

Thanks for your reply, although I didn't really get it. Sorry. I am trying to get a Portlet extension working. A window has to show up when one clicks on the gear handler and that is fine but I would like to extend the portlet and let other portlets inherit from it. So Id' like to let the portlets that inherit from it it decide what form fields go in and what buttons go in the settings window. Additional elements might also get created and inherited with overrides in the children.

Could you please advise me in this regard, or point me to a forum post to get an idea?

Thanks a lot!

CrazyEnigma
16 Jun 2010, 6:06 AM
Here are some articles on writing your own custom components.
http://www.sencha.com/learn/Tutorial:Extending_Ext_for_Newbies
http://www.sencha.com/learn/Tutorial:Extending_Ext2_Class
http://www.sencha.com/learn/Manual:Component:Extension_or_Plugin
http://www.sencha.com/learn/Tutorial:Writing_Ext_2_Plugins