Page 1 of 3 123 LastLast
Results 1 to 10 of 28

Thread: [NEW] Extending Ext Class Tutorial

  1. #1
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,664

    Default [NEW] Extending Ext Class Tutorial

    Hi folks,

    I've just released new tutorial on extending an Ext class: Extending Ext Class.

    Enjoy.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid MultiSearch Plugin, Grid MultiSort Plugin, Configuring ViewModel Hierarchy


  2. #2
    Sencha Premium Member steffenk's Avatar
    Join Date
    Jul 2007
    Location
    Haan, Germany
    Posts
    2,675

    Default

    Hi Saki,

    many thanks for this very good tutorial !

    I have a general question - in your case it's obvious to extend the combobox.

    If i want to create a new Contentelement e.g. an Image Caroussel - how can I find out which Ext-Object fits to be extended for?
    vg Steffen
    --------------------------------------
    Release Manager of TYPO3 4.5

  3. #3
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,664

    Default

    Good question guy!

    The class that has nearest functionality you need. The lowest class I'd extend would be Observable.

    ContentPanel would be good candidate for ImageCarousel but this is just a guess.

    Good luck!
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid MultiSearch Plugin, Grid MultiSort Plugin, Configuring ViewModel Hierarchy


  4. #4
    Sencha Premium Member steffenk's Avatar
    Join Date
    Jul 2007
    Location
    Haan, Germany
    Posts
    2,675

    Default

    thx, i will invetigate that.

    There was a little error in the tutorial with
    Code:
     + '<div class="{' + this.iconClsField + '} x-icon-combo-icon"></div></td>'
    Cls has to be removed, i corrected it.

    Now it would be interesting to display the flag not only in the list but in combo too.
    Do you have a quick idea how to do?
    vg Steffen
    --------------------------------------
    Release Manager of TYPO3 4.5

  5. #5
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,664

    Default

    Quote Originally Posted by steffenk View Post
    thx, i will invetigate that.

    There was a little error in the tutorial with
    Code:
     + '<div class="{' + this.iconClsField + '} x-icon-combo-icon"></div></td>'
    Cls has to be removed, i corrected it.
    No this is not error. iconClsField is correct. The error was in iconcombo.js


    Now it would be interesting to display the flag not only in the list but in combo too.
    Do you have a quick idea how to do?
    That is part of the tutorial.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid MultiSearch Plugin, Grid MultiSort Plugin, Configuring ViewModel Hierarchy


  6. #6
    Sencha Premium Member steffenk's Avatar
    Join Date
    Jul 2007
    Location
    Haan, Germany
    Posts
    2,675

    Default

    Quote Originally Posted by jsakalos View Post
    That is part of the tutorial.
    sry, very stupid from me, didn't recognized not finishing the tutorial.

    Very informative and nice demonstration!

    can you help me and explain one line?
    PHP Code:
    var wrap this.el.up('div.x-form-field-wrap'); 
    what does method up and where can i find this information?
    vg Steffen
    --------------------------------------
    Release Manager of TYPO3 4.5

  7. #7
    Ext JS Premium Member mikegiddens's Avatar
    Join Date
    Mar 2007
    Location
    Denver, Colorado
    Posts
    273

    Default

    I justs wanted to give my compliments on your time you have been spending helping the others with your extension and tutorials.

    Always top notch.
    Mike Giddens
    =======================
    Opportunity is missed by most people because it is dressed in overalls and looks like work - Thomas Edison

  8. #8
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,664

    Default

    Thank you very much Mike.

    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid MultiSearch Plugin, Grid MultiSort Plugin, Configuring ViewModel Hierarchy


  9. #9
    Sencha Premium Member steffenk's Avatar
    Join Date
    Jul 2007
    Location
    Haan, Germany
    Posts
    2,675

    Default

    i don't want to bother, but could you (or anybody else) answer my question from #6 ?
    vg Steffen
    --------------------------------------
    Release Manager of TYPO3 4.5

  10. #10
    Sencha Premium User
    Join Date
    Apr 2007
    Location
    Germany, Luebeck
    Posts
    21

Page 1 of 3 123 LastLast

Posting Permissions

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