PHP Class Prado\Web\UI\WebControls\TStyleSheet

TStyleSheet represents the link to a stylesheet file and/or a piece of stylesheet code. To specify the link to a CSS file, set {@link setStyleSheetUrl StyleSheetUrl}. Since Prado 3.3.1, it' possible to import css libraries bundled with Prado from template via the {@link setPradoStyles PradoStyles} property. Multiple Prado libraries can be specified using comma delimited string of the css library to include on the page. For example, The child rendering result of TStyleSheet is treated as CSS code and is rendered within an appropriate style HTML element. Therefore, if the child content is not empty, you should place the TStyleSheet control in the head section of your page to conform to the HTML standard. If only CSS file URL is specified, you may place the control anywhere on your page and the style element will be rendered in the right position.
Since: 3.0.2
Inheritance: extends Prado\Web\UI\TControl
Afficher le fichier Open project: pradosoft/prado

Méthodes publiques

Méthode Description
getMediaType ( ) : string
getPradoStyles ( ) : string
getStyleSheetUrl ( ) : string
onPreRender ( $param ) Registers the stylesheet file and content to be rendered.
render ( $writer ) Renders the control.
setMediaType ( $value )
setPradoStyles ( $value ) Include css library to the current page. The current supported libraries are: "jquery-ui", "bootstrap" and all the split jquery.ui.componentname libraries.
setStyleSheetUrl ( $value )

Method Details

getMediaType() public méthode

public getMediaType ( ) : string
Résultat string media type of the CSS (such as 'print', 'screen', etc.). Defaults to empty, meaning the CSS applies to all media types.

getPradoStyles() public méthode

Since: 3.3.1
public getPradoStyles ( ) : string
Résultat string comma delimited list of css libraries to include on the page.

getStyleSheetUrl() public méthode

public getStyleSheetUrl ( ) : string
Résultat string URL to the stylesheet file

onPreRender() public méthode

This method overrides the parent implementation and is invoked right before rendering.
public onPreRender ( $param )

render() public méthode

This method overrides the parent implementation and renders nothing.
public render ( $writer )

setMediaType() public méthode

public setMediaType ( $value )

setPradoStyles() public méthode

Include css library to the current page. The current supported libraries are: "jquery-ui", "bootstrap" and all the split jquery.ui.componentname libraries.
Since: 3.3.1
public setPradoStyles ( $value )

setStyleSheetUrl() public méthode

public setStyleSheetUrl ( $value )