Call another domplate inside a domplate (NEW)

31 views
Skip to first unread message

Malintha

unread,
Aug 29, 2012, 3:00:35 AM8/29/12
to fir...@googlegroups.com
Hi,

I m inside a side panel. In that panel I have a domplate and it has a button. When the button click I want to render a another dmoplate to a given node (to my table cell). It  looks like this.

define([
    "firebug/lib/lib",
    "firebug/lib/trace",
],
function(FBL, FBTrace) {

///////////////////
///////////////////

    MainSidePanel.prototype = FBL.extend(Firebug.Panel,


 initialize: function()
    {

    } 
 destroy: function(state)
    {
        Firebug.Panel.destroy.apply(
this, arguments);
    },
   
    refresh: function()
    {
       
        this.MyTemplateSide.render(this.panelNode,myPageArray); //this is my main template
      
    }

with (FBL) {
MainSidePanel.prototype.MyTemplateSide = domplate(
{

// my domplate1 stuff

         onclick:function(MYnewNODE){


              this.supportPlate.render(MYnewNODE); //this is my main template

          }
render: function(parentNode,nam2)
    {
       
        this.table.replace({array:nam2}, parentNode); //here i render my main domplate
    }

}),

MainSidePanel.prototype.supportPlate = domplate(

{

// my domplate2 stuff
             render: function(parentNode)
                 {
                ////////////
    }

});

But this not working......   Second domplate is not rendering

Jan Honza Odvarko

unread,
Aug 29, 2012, 5:21:12 AM8/29/12
to Firebug
Please attach your simplified extension so,
I can install and see what's wrong.

Honza

Malintha Adikari

unread,
Aug 29, 2012, 8:40:24 AM8/29/12
to fir...@googlegroups.com
now it is solved.thank you for reply

--
You received this message because you are subscribed to the Google
Groups "Firebug" group.
To post to this group, send email to fir...@googlegroups.com
To unsubscribe from this group, send email to
firebug+u...@googlegroups.com
For more options, visit this group at
https://groups.google.com/forum/#!forum/firebug

Reply all
Reply to author
Forward
0 new messages