1. #1
    Ext JS Premium Member genTaliaru's Avatar
    Join Date
    Jan 2009
    Posts
    51
    Vote Rating
    0
    genTaliaru is on a distinguished road

      0  

    Default Extra html

    how can i put there extra html, or buttons, or some text


    ....FormPanel code
    Code:
    items : 
    [
    {
    	fieldLabel: 'ID',
    	id: "txtGID",
    	disabled: true
    }
    ]
    ....FormPanel code

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    111
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default

    Example:
    Code:
    items: [{
    	layout: 'column',
    	anchor: '0',
    	items: [{
    		width: 300,
    		layout: 'form',
    		items: {
    			anchor: '0',
    			xtype: 'textfield',
    			fieldLabel: 'ID',
    			id: "txtGID",
    			disabled: true
    		}
    	},{
    		columnWidth: 1,
    		layout: 'form',
    		items: {
    			anchor: '0',
    			xtype: 'box',
    			autoEl: {cn: 'Here, some text'}
    		}
    	}]
    }]

  3. #3
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,569
    Vote Rating
    53
    Animal will become famous soon enough Animal will become famous soon enough

      0  

    Default

    or

    Code:
    items: [{
            xtype: 'container',
            autoEl: {},
            layout: 'column',
            anchor: '0',
            items: [{
                xtype: 'container',
                autoEl: {},
                width: 300,
                layout: 'form',
                items: {
                    anchor: '0',
                    xtype: 'textfield',
                    fieldLabel: 'ID',
                    id: "txtGID",
                    disabled: true
                }
            },{
                columnWidth: 1,
                layout: 'form',
                xtype: 'box',
                autoEl: {html: 'Here, some text'}
            }]
    }]

  4. #4
    Ext JS Premium Member genTaliaru's Avatar
    Join Date
    Jan 2009
    Posts
    51
    Vote Rating
    0
    genTaliaru is on a distinguished road

      0  

    Default thanks a lot

    thanks a lot

  5. #5
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    111
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default

    @Animal: Yes, using Container has less overhead, but you can't give a Container form layout in Ext 2.2, so I'm holding off on using it in examples.

  6. #6
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,569
    Vote Rating
    53
    Animal will become famous soon enough Animal will become famous soon enough

      0  

    Default

    Ach! yes you're right. I've been using 3.0 so long, that I've kind of dismissed 2.x from my mind!

  7. #7
    Ext JS Premium Member genTaliaru's Avatar
    Join Date
    Jan 2009
    Posts
    51
    Vote Rating
    0
    genTaliaru is on a distinguished road

      0  

    Default

    Quote Originally Posted by Animal View Post
    Ach! yes you're right. I've been using 3.0 so long, that I've kind of dismissed 2.x from my mind!

    Ext 3.0 version.
    Is it really exits?

  8. #8
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    111
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default

    Animal uses a build from the current Ext SVN trunk (which will become Ext 3.0 in the next few months).

  9. #9
    Ext JS Premium Member genTaliaru's Avatar
    Join Date
    Jan 2009
    Posts
    51
    Vote Rating
    0
    genTaliaru is on a distinguished road

      0  

    Default I have a another question

    In this pictue where is tehe text "here"
    before i had there disabled text input, but i dont like it
    I wanto put there just a regular text.
    Like a "Modifed date" or something else.

    This is the old version

  10. #10
    Ext User
    Join Date
    Nov 2008
    Posts
    56
    Vote Rating
    0
    dVyper is on a distinguished road

      0  

    Default

    Quote Originally Posted by Animal View Post
    Ach! yes you're right. I've been using 3.0 so long, that I've kind of dismissed 2.x from my mind!
    Show off...

Thread Participants: 3