Results 1 to 2 of 2

Thread: example doesn't work

    Looks like we cannot reproduce this. Please provide another test case to reproduce this issue.
  1. #1

    Default example doesn't work


    I am using an example from your documentation, the following:
     Ext.create('', {    renderTo: Ext.getBody(),
        height: 100,
        width: 200,
        items: [
                // Explicitly define the xtype of this Component configuration.
                // This tells the Container (the tab panel in this case)
                // to instantiate a Ext.panel.Panel when it deems necessary
                xtype: 'panel',
                title: 'Tab One',
                html: 'The first tab',
                listeners: {
                    render: function() {
                        Ext.MessageBox.alert('Rendered One', 'Tab One was rendered.');
                // this component configuration does not have an xtype since 'panel' is the default
                // xtype for all Component configurations in a Container
                title: 'Tab Two',
                html: 'The second tab',
                listeners: {
                    render: function() {
                        Ext.MessageBox.alert('Rendered One', 'Tab Two was rendered.');
    But it doesn't work and I get exception:
    But this is not code I have even written, it is copy paste directly from your documentation.

  2. #2
    Sencha User slemmon's Avatar
    Join Date
    Mar 2009
    Boise, ID


    The example worked ok for me when I tested in 4.2.1.

Tags for this Thread

Posting Permissions

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