Package Products :: Package ZenUtils :: Module Ext :: Class DirectProviderDefinition |
[hide private]
[frames] | no frames]

# Class DirectProviderDefinition

source code

    ZenUI3.utils.javascript.JavaScriptSnippet --+
                                                |
                                               DirectProviderDefinition

Turns a DirectRouter subclass into JavaScript object representing the config of the client-side API.

Inspects the given subclass and retrieves the names of all public methods, then defines those as actions on the Ext.Direct provider, and creates the JS that adds the provider.

As this is a JavaScriptSnippet, the resulting code will be included in the rendered template if the snippet is registered as a viewlet in ZCML and the appropriate provider is referenced in the template.

See http://extjs.com/products/extjs/direct.php for a full explanation of protocols and features of Ext.Direct.

Instance Methods | [hide private]
snippet(self) | source code

Class Variables | [hide private]
| _router = `None`
| _url = `None`