Results 1 to 2 of 2

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

  1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    68
    Vote Rating
    0
      0  

    Default 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
    Answers
    132
    Vote Rating
    101
      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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •