1. #1
    Ext User
    Join Date
    Nov 2007
    Posts
    16
    Vote Rating
    0
    random0xff is on a distinguished road

      0  

    Default What does it take to create an Adapter?

    What does it take to create an Adapter?


    I'm wondering what it takes to create an Adapter to a third party JavaScript framework. Is there a special document for that if someone want to try?

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Posts
    464
    Vote Rating
    1
    JorisA is on a distinguished road

      0  

    Default


    What are you exactly trying to do? I cant imagine any usefull situation.

  3. #3
    Ext User
    Join Date
    Apr 2007
    Posts
    379
    Vote Rating
    0
    sfwalter is on a distinguished road

      0  

    Default


    Just curious on which framework do you want to use with Ext JS?

  4. #4
    Ext User tidal's Avatar
    Join Date
    Apr 2007
    Location
    Berlin / Germany
    Posts
    50
    Vote Rating
    0
    tidal is on a distinguished road

      0  

    Default


    Well, I think you got inspired by Ext

  5. #5
    Ext User
    Join Date
    Nov 2007
    Posts
    16
    Vote Rating
    0
    random0xff is on a distinguished road

      0  

    Default


    Ok, so it's mainly looking at the existing adapters, there's no documentation that lists methods you need to implement? I'll just go and have a look at it then.

  6. #6
    Sencha User
    Join Date
    Apr 2012
    Location
    Austin, Texas
    Posts
    4
    Vote Rating
    0
    brian.moeskau is an unknown quantity at this point

      0  

    Default


    The existing adapters show the required API -- anything public in them is part of the API. They were developed internally and are not part of the Ext public API, and so were not doc'd. For the one or two people that might potentially want to build a new adapter, that does not merit the effort -- plus, anyone with the skillz to write an adapter probably won't need much help from us...

  7. #7
    Ext JS Premium Member CraigTheCoder's Avatar
    Join Date
    Dec 2007
    Location
    Austin, Texas
    Posts
    8
    Vote Rating
    0
    CraigTheCoder is on a distinguished road

      0  

    Default


    My understanding is that the adapters were intended to allow interoperability in environments that already had other frameworks. In some cases, it is hard to justify to management the cost and risk required to rip out an existing framework in order to use some of the outstanding features of another. In my case, I've come into a development organization that had already standardized usage of the mootools libraries. While this provides a lot of great low-level functionality, there's not much in the way of UI components.

    I've seen other seemingly-defunct threads in this forum regarding a mootools adapter, so it seems more than one person has had interest in such. I haven't had time to reverse-engineer the existing (compressed) adapter code and am certainly not adverse or afraid of writing one of my own, but doing so without any API domain knowledge or support might require more time than I have. If someone has a suggestion on how I can leverage the Ext without such an adapter and without stepping on mootools, I'd appreciate hearing any ideas.

    -craig

  8. #8
    Sencha User
    Join Date
    Apr 2012
    Location
    Austin, Texas
    Posts
    4
    Vote Rating
    0
    brian.moeskau is an unknown quantity at this point

      0  

    Default


    It's not so much a matter of "stepping on" mootools, just that there will be some redundant functionality that you won't use by including both moo and Ext base. It's not really a problem, just extra bytes.

    The adapters are available in the download uncompressed in src\adapter.

  9. #9
    Ext JS Premium Member CraigTheCoder's Avatar
    Join Date
    Dec 2007
    Location
    Austin, Texas
    Posts
    8
    Vote Rating
    0
    CraigTheCoder is on a distinguished road

      0  

    Default


    Cool. I appreciate the quick response and insight. I will take a look at the actual adapter source (which I somehow overlooked) and do some simple prototyping within our development codebase to see if I can get away without an adapter as you suggested.

    Thanks again from a fellow Austinite!

    -craig

  10. #10
    Sencha User
    Join Date
    Apr 2012
    Location
    Austin, Texas
    Posts
    4
    Vote Rating
    0
    brian.moeskau is an unknown quantity at this point

      0  

    Default


    Hook 'em Horns.