Author Topic: An issue adding a tab  (Read 5400 times)

gcarb

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
An issue adding a tab
« on: January 15, 2012, 09:45:51 am »
Hello there; I am Spanish and I am a newbie at this...

I've been trying to add a tab (with the aim of inserting my own html document as a tab. But didn't succeed editing layouts.js. May you help me with what is wrong? What happen is that once I loog in it keeps loading and never shows the tabs again...

This is what I'm writing (starts at line 64). By the way, I am working with the latest beta 3.


         var tab_panel = new Ext.TabPanel({
            id: 'tabs-panel',
            region: 'center',
            activeTab: 0,
            enableTabScroll: true,
         
            items: [
            
               (panels && panels.length)?panels:null
            
               new og.ContentPanel({
                  title: "google",
                  id: 'google-panel',
                  iconCls: 'ico-google',
                  refreshOnWorkspaceChange: false,
                  closable: true,
                  defaultContent: {
                     type: "url",
                     data: "prueba.html"
                  }
               }),

         });
         




Thank you very much!

P.S. Don't mind about "google" IDs. I just copied that functional code and I'll changei t later...
« Last Edit: January 15, 2012, 09:48:17 am by gcarb »

gcarb

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: An issue adding a tab
« Reply #1 on: January 15, 2012, 10:05:54 am »
Update:

I tried with this but it is still not working :(

items: [
               (panels && panels.length)?panels:null
            
               new og.ContentPanel({
                  title: "google",
                  id: 'google-panel',
                  iconCls: 'ico-google',
                  refreshOnWorkspaceChange: false,
                  closable: true,
                  defaultContent: {
                     type: "url",
                     data: "prueba.html"
                  }
               })
            ]

savesolutions

  • Newbie
  • *
  • Posts: 8
    • View Profile
    • Email
Re: An issue adding a tab
« Reply #2 on: June 20, 2012, 02:03:17 am »
I'd try a new tab using de helloworld plugin but even I already install the plugin and activated it, not able to show the new tab. FO 2.1-beta here

WiZaxx

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Re: An issue adding a tab
« Reply #3 on: August 19, 2012, 09:04:44 am »
Same everywhere ...

There must a be some sort of untold truth around this plugin deal...