Class \Prado\Web\UI\WebControls\TImage
TImage class
TImage displays an image on a page. The image is specified via the \Prado\Web\UI\WebControls\setImageUrl property which takes a relative or absolute URL to the image file. The style of the image displayed can be set using the \Prado\Web\UI\WebControls\setStyle property. To set an alternative text use the \Prado\Web\UI\WebControls\setAlternateText property.
Class hierarchy
- \Prado\Web\UI\WebControls\TImage implements IDataRenderer
- \Prado\Web\UI\WebControls\TWebControl implements IStyleable
- \Prado\Web\UI\TControl implements IRenderable, IBindable
- \Prado\TApplicationComponent
- \Prado\TComponent
Since: 3.0
public
|
|
public
|
getData() : string
Returns the URL of the image file.
This method is required by IDataRenderer. It is the same as getImageUrl(). |
public
deprecated
|
|
public
deprecated
|
|
public
|
|
public
|
renderContents(THtmlWriter $writer) : mixed
Renders the body content of the image.
Nothing to be rendered within image tags. |
public
|
setAlternateText(string $value) : mixed
Sets the alternative text to be displayed in the TImage when the image is unavailable.
|
public
|
setData(string $value) : mixed
Sets the URL of the image.
This method is required by IDataRenderer. It is the same as setImageUrl(). |
public
deprecated
|
|
public
deprecated
|
setImageAlign(string $value) : mixed
Sets the alignment of the image with respective to other elements on the page.
Possible values include: absbottom, absmiddle, baseline, bottom, left, middle, right, texttop, and top. If an empty string is passed in, imagealign attribute will not be rendered. |
public
|
|
protected
|
addAttributesToRender(THtmlWriter $writer) : mixed
Adds attributes related to an HTML image element to renderer.
|
protected
|