class type t =Inheritsobject
..end
method isLoader : bool Js.t Js.prop
true
in this class to identify an object as an instantiated ElementLoader, or subclass thereof.
Defaults to: true
method abort : unit Js.meth
Aborts the active load request
method destroy : unit Js.meth
Destroys the loader. Any active requests will be aborted.
method getTarget : 'a. 'a Js.t Js.meth
Returns the target of this loader.
Returns:
#Ext_Component.t Js.t
The target or null if none exists.
method isAutoRefreshing : bool Js.t Js.meth
Checks whether the loader is automatically refreshing. See startAutoRefresh.
Returns:
bool Js.t
True if the loader is automatically refreshing
method load : 'b. 'b Js.t -> unit Js.meth
Loads new data from the server.
Parameters:
_ Js.t
The options for the request. They can be any configuration option that can be specified for the class, with the exception of the target option. Note that any options passed to the method will override any class defaults.
method setTarget : 'c. 'c Js.t -> unit Js.meth
Sets an Ext.Element as the target of this loader. Note that if the target is changed, any active requests will be aborted.
Parameters:
_ Js.t
The element or its ID.
method startAutoRefresh : 'd. Js.number Js.t -> 'd Js.t Js.optdef -> unit Js.meth
Automatically refreshes the content over a specified period.
Parameters:
Js.number Js.t
The interval to refresh in ms.
_ Js.t
(optional)
The options to pass to the load method. See load
method stopAutoRefresh : unit Js.meth
Clears any auto refresh. See startAutoRefresh.