fcf.NClient.Application class

[Client only] Singleton of the application object on the client, accessible through the fcf.application object

Class description Methods
fcf.NSystem.Configuration getConfiguration() - Returns an application configuration object on the client
fcf.EventChannel getEventChannel() - Returns the application message channel object
fcf.NClient.LocalData getLocalData() - Returns storing template data
fcf.NClient.Wrapper getRootWrapper() - Returns the root wrapper of the page
boolean isAvailable() - Returns true if the application is initialized and ready to use
fcf.Actions->fcf.NRender.Template render(object a_options) - [Asynchronous method] Renders the template
fcf.Actions setLocation(string a_url) - [Asynchronous method] Changes the URI of the page without reloading it and redrawing dependent templates.
fcf.Actions setUrlArg(string a_name, mixed a_value) - [Asynchronous method] Sets the redraw page argument of dependent templates.
Methods
fcf.NSystem.Configuration getConfiguration() Returns an application configuration object on the client Return value: fcf.NSystem.Configuration
fcf.EventChannel getEventChannel() Returns the application message channel object Return value: fcf.EventChannel
fcf.NClient.LocalData getLocalData() Returns storing template data Return value: fcf.NClient.LocalData
fcf.NClient.Wrapper getRootWrapper() Returns the root wrapper of the page Return value: fcf.NClient.Wrapper
boolean isAvailable() Returns true if the application is initialized and ready to use Return value: boolean
fcf.Actions->fcf.NRender.Template render(object a_options) [Asynchronous method] Renders the template Arguments: object a_options - An object containing rendering parameters:

string template - template path

fcf.NClient.Wrapper | string parent - parent wrapper or its identifier

DomElement owner - [default = parent.getDomElement()] Dom element into which the new template will be embedded.

object args - template arguments

If the owner and parent properties are not set, then you need to independently embed the context into the DOM tree of the page and execute the fcf.liven() method on the new element
Return value: fcf.Actions->fcf.NRender.Template
fcf.Actions setLocation(string a_url) [Asynchronous method] Changes the URI of the page without reloading it and redrawing dependent templates. Arguments: string a_url - New page URL Return value: fcf.Actions
fcf.Actions setUrlArg(string a_name, mixed a_value) [Asynchronous method] Sets the redraw page argument of dependent templates. Arguments: string a_name - Argument name mixed a_value - Argument value Return value: fcf.Actions