1. #1
    Ext User
    Join Date
    Jul 2007
    Posts
    46
    Vote Rating
    0
    arnold is on a distinguished road

      0  

    Lightbulb Ext.form.Field override : Adding an icon to a form field of any type

    Ext.form.Field override : Adding an icon to a form field of any type


    Ever wanted to add an icon next to a form field of any type?
    Just to be able to add some behaviour like context specific help or some dynamics
    like adding or removal of a form field
    . Well now you can!

    This is how you do it :

    Code:
    {	fieldLabel: 'First Name',
    	name: 'first',
    	labelSeparator  : '',
    	width: 230,
    	allowBlank:false,
    	iconCfg: {cls:'x-tool x-tool-help',clsOnOver:'x-tool-help-over'},
    	listeners : { 'onIcon' : {fn: function(field) {Ext.example.msg('onIcon','Implement behaviour');}}}
    }
    To get this up and running just unzip the attached demo in your examples folder of extjs.
    And that's it. See the attached image for a sneak preview of the attached demo.
    Have fun!
    Attached Images
    Attached Files

  2. #2
    Sencha User wemerson.januario's Avatar
    Join Date
    Nov 2008
    Location
    Brazil, Goias, GoiĆ¢nia
    Posts
    441
    Vote Rating
    7
    wemerson.januario will become famous soon enough

      0  

    Default good work

    good work


    congratulations, nice work!!!

  3. #3
    Sencha User
    Join Date
    Jan 2010
    Posts
    1
    Vote Rating
    0
    trojanman190 is on a distinguished road

      0  

    Default


    Awesome, thanks dude!