Results 1 to 3 of 3

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

  1. #1
    Ext User
    Join Date
    Jul 2007
    Posts
    46
    Vote Rating
    0
      0  

    Lightbulb 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 Images
    Attached Files Attached Files

  2. #2
    Sencha Premium User wemerson.januario's Avatar
    Join Date
    Nov 2008
    Location
    Goinia - GO, Brazil
    Posts
    640
    Vote Rating
    49
      0  

    Default good work

    congratulations, nice work!!!

  3. #3
    Sencha User
    Join Date
    Jan 2010
    Posts
    1
    Vote Rating
    0
      0  

    Default

    Awesome, thanks dude!

Posting Permissions

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