[ Index ]
 

Code source de PRADO 3.0.6

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/framework/Web/UI/WebControls/ -> TClientScript.php (sommaire)

TClientScript class file

Author: Wei Zhuo
Copyright: Copyright © 2005 PradoSoft
License: http://www.pradosoft.com/license/
Version: $Id: TClientScript.php 1397 2006-09-07 07:55:53Z wei $
Poids: 133 lignes (4 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

TClientScript:: (8 méthodes):
  getPradoScripts()
  setPradoScripts()
  getScriptUrl()
  setScriptUrl()
  onPreRender()
  render()
  renderCustomScriptFile()
  renderCustomScript()


Classe: TClientScript  - X-Ref

TClientScript class

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,

<code>
<com:TClientScript PradoScripts="effects, rico" />
</code>

Custom javascript files can be register using the {@link setScriptUrl ScriptUrl}
property.
<code>
<com:TClientScript ScriptUrl=<%~ test.js %> />
</code>

Contents within TClientScript will be treated as javascript code and will be
rendered in place.

getPradoScripts()   X-Ref

return: string comma delimited list of javascript libraries to included

setPradoScripts($value)   X-Ref
Include javascript library to the current page. The current supported
libraries are: "prado", "effects", "ajax", "validator", "logger",
"datepicker", "rico", "colorpicker". Library dependencies are
automatically resolved.

param: string comma delimited list of javascript libraries to include.

getScriptUrl()   X-Ref

return: string custom javascript file url.

setScriptUrl($value)   X-Ref

param: string custom javascript file url.

onPreRender($param)   X-Ref
Calls the client script manager to add each of the requested client
script libraries.

param: mixed event parameter

render($writer)   X-Ref
Renders the body content as javascript block.
Overrides parent implementation, parent renderChildren method is called during
{@link registerCustomScript}.

param: THtmlWriter the renderer

renderCustomScriptFile($writer)   X-Ref
Renders the custom script file.

param: THtmLWriter the renderer

renderCustomScript($writer)   X-Ref
Registers the body content as javascript.

param: THtmlWriter the renderer



Généré le : Sun Feb 25 21:07:04 2007 par Balluche grâce à PHPXref 0.7