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,135
    Answers
    129
    Vote Rating
    99
    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

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar