PHP Класс Prado\Web\UI\WebControls\THyperLinkColumn

THyperLinkColumn contains a hyperlink for each item in the column. You can set the text and the url of the hyperlink by {@link setText Text} and {@link setNavigateUrl NavigateUrl} properties, respectively. You can also bind the text and url to specific data field in datasource by setting {@link setDataTextField DataTextField} and {@link setDataNavigateUrlField DataNavigateUrlField}. Both can be formatted before rendering according to the {@link setDataTextFormatString DataTextFormatString} and and {@link setDataNavigateUrlFormatString DataNavigateUrlFormatString} properties, respectively. If both {@link setText Text} and {@link setDataTextField DataTextField} are present, the latter takes precedence. The same rule applies to {@link setNavigateUrl NavigateUrl} and {@link setDataNavigateUrlField DataNavigateUrlField} properties. The hyperlinks in the column can be accessed by one of the following two methods: $datagridItem->HyperLinkColumnID->HyperLink $datagridItem->HyperLinkColumnID->Controls[0] The second method is possible because the hyperlink control created within the datagrid cell is the first child.
С версии: 3.0
Автор: Qiang Xue ([email protected])
Наследование: extends TDataGridColumn
Показать файл Открыть проект

Открытые методы

Метод Описание
dataBindColumn ( $sender, $param ) Databinds a cell in the column.
getDataNavigateUrlField ( ) : string
getDataNavigateUrlFormatString ( ) : string
getDataTextField ( ) : string
getDataTextFormatString ( ) : string
getImageHeight ( ) : string
getImageUrl ( ) : string
getImageWidth ( ) : string
getNavigateUrl ( ) : string
getTarget ( ) : string
getText ( ) : string
initializeCell ( $cell, $columnIndex, $itemType ) Initializes the specified cell to its initial values.
setDataNavigateUrlField ( $value )
setDataNavigateUrlFormatString ( $value )
setDataTextField ( $value )
setDataTextFormatString ( $value )
setImageHeight ( $value )
setImageUrl ( $value )
setImageWidth ( $value )
setNavigateUrl ( $value ) Sets the URL to link to when the hyperlink is clicked.
setTarget ( $value ) Sets the target window or frame to display the Web page content linked to when the hyperlink is clicked.
setText ( $value ) Sets the text caption of the hyperlink.

Описание методов

dataBindColumn() публичный Метод

This method is invoked when datagrid performs databinding. It populates the content of the cell with the relevant data from data source.
public dataBindColumn ( $sender, $param )

getDataNavigateUrlField() публичный Метод

public getDataNavigateUrlField ( ) : string
Результат string the field name from the data source to bind to the navigate url of hyperlink

getDataNavigateUrlFormatString() публичный Метод

public getDataNavigateUrlFormatString ( ) : string
Результат string the formatting string used to control how the navigate url of hyperlink will be displayed.

getDataTextField() публичный Метод

public getDataTextField ( ) : string
Результат string the field name from the data source to bind to the hyperlink caption

getDataTextFormatString() публичный Метод

public getDataTextFormatString ( ) : string
Результат string the formatting string used to control how the hyperlink caption will be displayed.

getImageHeight() публичный Метод

public getImageHeight ( ) : string
Результат string height of the image in the THyperLink

getImageUrl() публичный Метод

public getImageUrl ( ) : string
Результат string url of the image in the THyperLink

getImageWidth() публичный Метод

public getImageWidth ( ) : string
Результат string width of the image in the THyperLink

getNavigateUrl() публичный Метод

public getNavigateUrl ( ) : string
Результат string the URL to link to when the hyperlink is clicked.

getTarget() публичный Метод

public getTarget ( ) : string
Результат string the target window or frame to display the Web page content linked to when the hyperlink is clicked.

getText() публичный Метод

public getText ( ) : string
Результат string the text caption of the hyperlink

initializeCell() публичный Метод

This method overrides the parent implementation. It creates a hyperlink within the cell.
public initializeCell ( $cell, $columnIndex, $itemType )

setDataNavigateUrlField() публичный Метод

public setDataNavigateUrlField ( $value )

setDataNavigateUrlFormatString() публичный Метод

public setDataNavigateUrlFormatString ( $value )

setDataTextField() публичный Метод

public setDataTextField ( $value )

setDataTextFormatString() публичный Метод

public setDataTextFormatString ( $value )

setImageHeight() публичный Метод

public setImageHeight ( $value )

setImageUrl() публичный Метод

public setImageUrl ( $value )

setImageWidth() публичный Метод

public setImageWidth ( $value )

setNavigateUrl() публичный Метод

Sets the URL to link to when the hyperlink is clicked.
public setNavigateUrl ( $value )

setTarget() публичный Метод

Sets the target window or frame to display the Web page content linked to when the hyperlink is clicked.
public setTarget ( $value )

setText() публичный Метод

Sets the text caption of the hyperlink.
public setText ( $value )