The above can also be accomplished in code as follows,
$table=new TTable;
$row=new TTableRow;
$cell=new TTableCell; $cell->Text="content"; $row->Cells->add($cell);
$cell=new TTableCell; $cell->Text="content"; $row->Cells->add($cell);
$table->Rows->add($row);
$row=new TTableRow;
$cell=new TTableCell; $cell->Text="content"; $row->Cells->add($cell);
$cell=new TTableCell; $cell->Text="content"; $row->Cells->add($cell);
$table->Rows->add($row);
파일 보기
프로젝트 열기: pradosoft/prado
1 사용 예제들
메소드 | 설명 | |
---|---|---|
addParsedObject ( $object ) | Adds object parsed from template to the control. | |
getBackImageUrl ( ) : string | ||
getCaption ( ) : string | ||
getCaptionAlign ( ) : |
||
getCellPadding ( ) : integer | ||
getCellSpacing ( ) : integer | ||
getGridLines ( ) : |
||
getHorizontalAlign ( ) : |
||
getRows ( ) : |
||
renderBeginTag ( $writer ) | Renders the openning tag for the table control which will render table caption if present. | |
renderContents ( $writer ) | Renders body contents of the table. | |
setBackImageUrl ( $value ) | Sets the URL of the background image for the table | |
setCaption ( $value ) | ||
setCaptionAlign ( $value ) | ||
setCellPadding ( $value ) | ||
setCellSpacing ( $value ) | ||
setGridLines ( $value ) | ||
setHorizontalAlign ( $value ) |
메소드 | 설명 | |
---|---|---|
addAttributesToRender ( $writer ) | Adds attributes to renderer. | |
createControlCollection ( ) : |
Creates a control collection object that is to be used to hold child controls | |
createStyle ( ) : |
Creates a style object for the control. | |
getTagName ( ) : string |
protected addAttributesToRender ( $writer ) |
public addParsedObject ( $object ) |
protected createControlCollection ( ) : |
||
리턴 | control collection |
protected createStyle ( ) : |
||
리턴 | control style to be used |
public getBackImageUrl ( ) : string | ||
리턴 | string | the URL of the background image for the table |
public getCaptionAlign ( ) : |
||
리턴 | table caption alignment. Defaults to TTableCaptionAlign::NotSet. |
public getCellPadding ( ) : integer | ||
리턴 | integer | the cellpadding for the table. Defaults to -1, meaning not set. |
public getCellSpacing ( ) : integer | ||
리턴 | integer | the cellspacing for the table. Defaults to -1, meaning not set. |
public getGridLines ( ) : |
||
리턴 | the grid line setting of the table. Defaults to TTableGridLines::None. |
public getHorizontalAlign ( ) : |
||
리턴 | the horizontal alignment of the table content. Defaults to THorizontalAlign::NotSet. |
public getRows ( ) : |
||
리턴 | list of {@link TTableRow} controls |
public renderBeginTag ( $writer ) |
public setBackImageUrl ( $value ) |