Results 1 to 2 of 2

Thread: config api proprty explanation

  1. #1
    Ext User
    Join Date
    Oct 2010
    Vote Rating

    Default config api proprty explanation


    As a part of using DirectJNgine, I have a js file that extends an Ext.FormPanel. Let's call the js file FormPanelExtension such that the declaration o the Object looks like:

    FormPanelExtension = Ext.extend(Ext.FormPanel, { ... }

    The file is supposed to call a backing Java service, called ProjectService, to retrieve one piece of information and put it in one textfield. I am writing this code based on how another former employee at my company wrote his FormPanelExtension. Inside his, he defined the initComponent property of FormPanelExtension as a function. One of the variable of the initComponent funtion is var config. A property of config is api. It looks like his version of api called some server-side methods, like this:

    api: {
    load: service.getInfo
    submit: service.update
    }, ...

    I am having trouble understanding what the purpose of the api property of the config object is. Better yet, I am also trying to figure out what type of object is supposed to be represented in config. My guess is that these are ExtJS standards, but I am not too sure.

    Thank you for the help.


  2. #2
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    The Netherlands
    Vote Rating


    The 'api' specifies the methods to use when loading or submitting a form (instead of using the url in a standard request).

    ps. Don't forget to mark your 'submit' method as formHandler in DirectJNgine!

Similar Threads

  1. API missing documentation for HttpProxy config options?
    By toolware in forum Community Discussion
    Replies: 2
    Last Post: 29 Apr 2010, 6:44 AM
  2. Ext JS charts - missing config options in API
    By hadi78 in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 10 Nov 2009, 5:14 AM
  3. Store-MVC-Event model: API or brief explanation
    By slupix in forum Ext GWT: Help & Discussion (1.x)
    Replies: 2
    Last Post: 4 Jun 2008, 1:08 PM
  4. Why some Config Options are not found in the API ?
    By marcossoft in forum Ext 2.x: Help & Discussion
    Replies: 8
    Last Post: 5 Apr 2008, 1:10 PM
  5. API docs and config options
    By nbinder in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 23 Jun 2007, 8:30 AM

Tags for this Thread

Posting Permissions

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