Hybrid View

  1. #1
    Sencha User tdikarim's Avatar
    Join Date
    Jun 2007
    Location
    Belgium - Brussel
    Posts
    142
    Vote Rating
    0
    tdikarim is an unknown quantity at this point

      -1  

    Default wizard and panel

    wizard and panel


    Hi,

    How to have a wizard that contain a panel on each step.
    I have try this but the first card does nothing appear
    Code:
        var wizard2 = Ext.create('Ext.panel.Panel', {
    	    title: 'Example Wizard',
    	    width: 300,
    	    height: 200,
    	    layout: 'card',
    	    bodyStyle: 'padding:15px',
    	    defaults: {
    	        // applied to each contained panel
    	        border: false
    	    },
    	    // just an example of one possible navigation scheme, using buttons
    	    bbar: [
    	        {
    	            id: 'move-prev',
    	            text: 'Back',
    	            handler: function(btn) {
    	                navigate(btn.up("panel"), "prev");
    	            },
    	            disabled: true
    	        },
    	        '->', // greedy spacer so that the buttons are aligned to each side
    	        {
    	            id: 'move-next',
    	            text: 'Next',
    	            handler: function(btn) {
    	                navigate(btn.up("panel"), "next");
    	            }
    	        }
    	    ],
    	    // the panels (or "cards") within the layout
    	    items: [{
    	        id: 'card-0',
    	        items:[panel_myPanelTest]
    	    },{
    	        id: 'card-1',
    	        html: '<p>Step 2 of 3</p>'
    	    }]
    	});
    Thanks for your help

    Karim
    Tamditi Karim

  2. #2
    Sencha User tdikarim's Avatar
    Join Date
    Jun 2007
    Location
    Belgium - Brussel
    Posts
    142
    Vote Rating
    0
    tdikarim is an unknown quantity at this point

      1  

    Default [SOLVED]

    [SOLVED]


    Ok, I found my problem.
    This is because I use the same panel to another location.

    Is it normal that I can not use my panel at 2 different places?
    Tamditi Karim

Tags for this Thread