Results 1 to 4 of 4

Thread: How to include External code in Extjs

  1. #1
    Sencha User parsbin's Avatar
    Join Date
    Feb 2011
    Location
    Iran, Alborz, Karaj
    Posts
    123

    Question How to include External code in Extjs

    I`v created a suggestion textbox out of Extjs, and i want include that in my Extjs form.
    can i do that?

  2. #2
    Sencha User vishalnnsingh's Avatar
    Join Date
    Sep 2010
    Location
    Kolkata, India
    Posts
    115

    Default

    use ext.extend to make an extension, you can easily use it in your form after that, you can also use the new keyword to make an object and then use it in your form
    I Meet Challenge with Excitement & My Only Gossip is Love

  3. #3
    Sencha User friend's Avatar
    Join Date
    Apr 2011
    Posts
    895

    Default

    See this excellent article by Animal: http://www.sencha.com/learn/Tutorial...ew_UI_controls

  4. #4
    Sencha User parsbin's Avatar
    Join Date
    Feb 2011
    Location
    Iran, Alborz, Karaj
    Posts
    123

    Default

    Thanks
    Very easy!

    PHP Code:
    <script type="text/javascript">
    Ext.ux.Text Ext.extend(Ext.Component, {
        
    autoEl: {
            
    tag'input',
            
    type'text'
        
    },
        
    onRender: function() {
            
    this.autoEl Ext.apply({}, this.initialConfigthis.autoEl);
            
    Ext.ux.Text.superclass.onRender.apply(thisarguments);
            
    this.el.on('load'this.onLoadthis);
        },
        
    onLoad: function() {
            
    this.fireEvent('load'this);
        }
    });
    Ext.reg('text'Ext.ux.Text);

    </script> 
    PHP Code:
          xtype'text',
          
    isFormFieldtrue
          
    fieldLabel'text',  
          
    qtip'text Tooltip' 

Similar Threads

  1. How to include external scripts dinamically
    By talha06 in forum Ext 3.x: Help & Discussion
    Replies: 15
    Last Post: 1 Nov 2010, 2:24 AM
  2. How to include code snippet of javascript in the code written in EXT-GWT?
    By Amulya in forum Ext GWT: Help & Discussion (1.x)
    Replies: 1
    Last Post: 28 Apr 2009, 11:30 PM
  3. Include external script with javascript
    By marleone in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 8 Sep 2008, 9:42 AM
  4. Include external js file
    By Digital God in forum Ext 1.x: Help & Discussion
    Replies: 3
    Last Post: 5 Jul 2007, 7:50 AM

Posting Permissions

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