Class \Prado\Web\UI\WebControls\TTableCell
TTableCell displays a table cell on a Web page. Content of the table cell is specified by the \Prado\Web\UI\WebControls\setText property. If \Prado\Web\UI\WebControls\setText is empty, the body contents enclosed by the table cell component tag are rendered. Note, \Prado\Web\UI\WebControls\setText is not HTML-encoded when displayed. So make sure it does not contain dangerous characters.
The horizontal and vertical alignments of the contents in the cell are specified via \Prado\Web\UI\WebControls\setHorizontalAlign and \Prado\Web\UI\WebControls\setVerticalAlign properties, respectively.
The colspan and rowspan of the cell are specified via \Prado\Web\UI\WebControls\setColumnSpan and \Prado\Web\UI\WebControls\setRowSpan properties. And the \Prado\Web\UI\WebControls\setWrap property indicates whether the contents in the cell should be wrapped.
Class hierarchy
- \Prado\Web\UI\WebControls\TTableCell 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 text content of the table cell.
This method is required by IDataRenderer. It is the same as getText(). |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
setData(string $value) : mixed
Sets the text content of the table cell.
This method is required by IDataRenderer. It is the same as setText(). |
public
|
setHorizontalAlign(string $value) : mixed
Sets the horizontal alignment of the contents within the table item.
Valid values include 'NotSet', 'Justify', 'Left', 'Right', 'Center' |
public
|
|
public
|
setText(string $value) : mixed
Sets the text content of the table cell.
If the text content is empty, body content (child controls) of the cell will be rendered. |
public
|
setVerticalAlign(string $value) : mixed
Sets the vertical alignment of the contents within the table item.
Valid values include 'NotSet','Top','Bottom','Middle' |
public
|
setWrap(bool $value) : mixed
Sets the value indicating whether the text content wraps within a table cell.
|
protected
|
|
protected
|
createStyle() : TStyle
Creates a style object for the control.
This method creates a TTableItemStyle to be used by the table cell. |
protected
|