PHP Class Prado\Web\UI\JuiControls\TJuiControlAdapter

TJuiControlAdapter is the base adapter class for controls that are derived from a jQuery-ui widget. It exposes convenience methods to publish jQuery-UI javascript and css assets.
Since: 3.3
Author: Fabio Bas ([email protected])
Inheritance: extends Prado\Web\UI\ActiveControls\TActiveControlAdapter
Afficher le fichier Open project: pradosoft/prado

Méthodes publiques

Méthode Description
getJuiBaseStyle ( ) : string
loadState ( ) Calls the parent implementation first and sets the parent control for the {@link TJuiControlOptions} again afterwards since it was not serialized in viewstate.
onInit ( $param ) Replace default StateTracker with {@link TJuiCallbackPageStateTracker} for options tracking in ViewState.
onPreRender ( $param ) Inject jquery script and styles before render
publishJuiStyle ( $file ) : string Publish the jQuery-ui style Css asset file.
setJuiBaseStyle ( $value )

Méthodes protégées

Méthode Description
getAssetUrl ( $file = '' ) : string

Method Details

getAssetUrl() protected méthode

protected getAssetUrl ( $file = '' ) : string
Résultat string jQuery asset url.

getJuiBaseStyle() public méthode

public getJuiBaseStyle ( ) : string
Résultat string current jquery-ui style

loadState() public méthode

Calls the parent implementation first and sets the parent control for the {@link TJuiControlOptions} again afterwards since it was not serialized in viewstate.
public loadState ( )

onInit() public méthode

Replace default StateTracker with {@link TJuiCallbackPageStateTracker} for options tracking in ViewState.
public onInit ( $param )

onPreRender() public méthode

Inject jquery script and styles before render
public onPreRender ( $param )

publishJuiStyle() public méthode

Publish the jQuery-ui style Css asset file.
public publishJuiStyle ( $file ) : string
Résultat string Css file url.

setJuiBaseStyle() public méthode

public setJuiBaseStyle ( $value )