Class \Prado\Web\UI\WebControls\THyperLink
THyperLink displays a hyperlink on a page. The hyperlink URL is specified via the \Prado\Web\UI\WebControls\setNavigateUrl property, and link text is via the \Prado\Web\UI\WebControls\setText property. It is also possible to display an image by setting the \Prado\Web\UI\WebControls\setImageUrl property. In this case, the style of the image displayed can be set using the \Prado\Web\UI\WebControls\setImageStyle property and \Prado\Web\UI\WebControls\getText is displayed as the alternate text of the image.
The link target is specified via the \Prado\Web\UI\WebControls\setTarget property. If both \Prado\Web\UI\WebControls\getImageUrl and \Prado\Web\UI\WebControls\getText are empty, the content enclosed within the control tag will be rendered.
Class hierarchy
- \Prado\Web\UI\WebControls\THyperLink implements IDataRenderer
- \Prado\Web\UI\WebControls\TWebControl implements IStyleable
- \Prado\Web\UI\TControl implements IRenderable, IBindable
- \Prado\TApplicationComponent
- \Prado\TComponent
Since: 3.0
public
|
getData() : string
Returns the URL to link to when the THyperLink component is clicked.
This method is required by IDataRenderer. It is the same as getText(). |
public
deprecated
|
|
public
deprecated
|
|
public
|
|
public
|
|
public
deprecated
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
setData(string $value) : mixed
Sets the URL to link to when the THyperLink component is clicked.
This method is required by IDataRenderer. It is the same as setText(). |
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
deprecated
|
|
public
|
|
public
deprecated
|
|
public
|
setNavigateUrl(string $value) : mixed
Sets the URL to link to when the THyperLink component is clicked.
|
public
|
setTarget(string $value) : mixed
Sets the target window or frame to display the Web page content linked to when the THyperLink component is clicked.
|
public
|
|
protected
|
addAttributesToRender(THtmlWriter $writer) : mixed
Adds attributes related to a hyperlink element to renderer.
|
protected
|
createImage(string $imageUrl) : TImage
Gets the TImage for rendering the ImageUrl property. This is not for
creating dynamic images.
|
protected
|