1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    68
    Vote Rating
    0
    gigas01 is on a distinguished road

      0  

    Default Answered: html property isn't working!(very simple)

    Answered: html property isn't working!(very simple)


    Hey guys, i can't solve this problem.

    It has to work!! it is visualizing the icons
    , but it is not showing the html codes

    oh, and why doesn't it changes, if i put a

    iconCls: 'home'

    it has to change to a home icon, but it doesnt



    Main.js
    Code:
    Ext.define("GS.view.Main", {
        extend : 'Ext.Panel',
        requires: [
            'Ext.Toolbar','Ext.Viewport'
        ],
        config: {
            fullscreen: true,
    
    
            items: [
            {
                xtype: 'home-view'
            }
            ]
        },
        initialize: function(){
            this.setActiveItem(0);
        }
    });


    home.js
    Code:
    Ext.define("GS.view.home", {
        extend: 'Ext.tab.Panel',
        xtype: 'home-view',
    
    
        config: {
            items: [
                {
                    xtype: 'container',
                    title: 'Tab 1',
                    html: 'asdf'
                },
                {
                    xtype: 'container',
                    title: 'Tab 2'
                },
                {
                    xtype: 'container',
                    title: 'Tab 3'
                }
            ]
        }
    })

  2. You have to give your Main panel a layout and what exactly are you adding iconCls to? You can only add the iconCls to buttons or tabs in a TabPanel by default.

  3. #2
    Sencha User jerome76's Avatar
    Join Date
    Apr 2012
    Location
    New Jersey
    Posts
    1,149
    Vote Rating
    99
    Answers
    132
    jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice

      0  

    Default


    You have to give your Main panel a layout and what exactly are you adding iconCls to? You can only add the iconCls to buttons or tabs in a TabPanel by default.

Thread Participants: 1