PHP Class Prado\Web\UI\WebControls\TClientScript
Allows importing of Prado Client Scripts from template via the
{@link setPradoScripts PradoScripts} property. Multiple Prado
client-scripts can be specified using comma delimited string of the
javascript library to include on the page. For example,
Custom javascript files can be register using the {@link setScriptUrl ScriptUrl}
property.
/>
Contents within TClientScript will be treated as javascript code and will be
rendered in place.
Since Prado 3.2 the property {@link setFlushScriptFiles FlushScriptFiles} controls
whether Prado will flush the script files defined in the page before rendering the
TClientScript contents.
If you're not using any external functions in your TClientScript block, you should
set the {@link setFlushScriptFiles FlushScriptFiles} property to false, so Prado
can postpone the loading of all the referenced script files further down the page
generation cycle.
Afficher le fichier
Open project: pradosoft/prado
Méthodes publiques
Méthodes protégées
Method Details
getFlushScriptFiles()
public méthode
public getFlushScriptFiles ( ) : boolean |
Résultat |
boolean |
whether to flush script files using TClientScriptManager::flushScriptFiles() before rendering the script block |
getPradoScripts()
public méthode
getScriptUrl()
public méthode
onPreRender()
public méthode
Calls the client script manager to add each of the requested client
script libraries.
Overrides parent implementation, parent renderChildren method is called during
{@link registerCustomScript}.
renderCustomScript()
protected méthode
Registers the body content as javascript.
renderCustomScriptFile()
protected méthode
Renders the custom script file.
setFlushScriptFiles()
public méthode
setPradoScripts()
public méthode
Include javascript library to the current page. The current supported
libraries are: "prado", "effects", "ajax", "validator", "logger",
"datepicker", "colorpicker". Library dependencies are automatically resolved.
setScriptUrl()
public méthode