diff options
-rw-r--r-- | .gitattributes | 1 | ||||
-rw-r--r-- | demos/quickstart/protected/pages/Controls/Samples/TTable/Home.page | 7 | ||||
-rw-r--r-- | demos/quickstart/protected/pages/Controls/Samples/TTable/Home.php | 33 |
3 files changed, 41 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes index ee8f64f5..61c290c7 100644 --- a/.gitattributes +++ b/.gitattributes @@ -81,6 +81,7 @@ demos/quickstart/protected/pages/Controls/Samples/TRegularExpressionValidator/Ho demos/quickstart/protected/pages/Controls/Samples/TRequiredFieldValidator/Home.page -text demos/quickstart/protected/pages/Controls/Samples/TRequiredFieldValidator/Home.php -text demos/quickstart/protected/pages/Controls/Samples/TTable/Home.page -text +demos/quickstart/protected/pages/Controls/Samples/TTable/Home.php -text demos/quickstart/protected/pages/Controls/Samples/TTable/backimage.gif -text demos/quickstart/protected/pages/Controls/Samples/TTextBox/Home.page -text demos/quickstart/protected/pages/Controls/Samples/TTextBox/Home.php -text diff --git a/demos/quickstart/protected/pages/Controls/Samples/TTable/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TTable/Home.page index cec92f67..9ffe6565 100644 --- a/demos/quickstart/protected/pages/Controls/Samples/TTable/Home.page +++ b/demos/quickstart/protected/pages/Controls/Samples/TTable/Home.page @@ -39,6 +39,13 @@ Table with rows and customized font, background image, etc.: </com:TTable>
</td></tr>
+<tr><td class="samplenote">
+A dynamically created table:
+</td><td class="sampleaction">
+<com:TTable ID="Table" />
+</td>
+</tr>
+
</table>
</com:TContent>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Samples/TTable/Home.php b/demos/quickstart/protected/pages/Controls/Samples/TTable/Home.php new file mode 100644 index 00000000..fa5efe38 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TTable/Home.php @@ -0,0 +1,33 @@ +<?php
+
+class Home extends TPage
+{
+ public function onLoad($param)
+ {
+ $this->Table->GridLines='Both';
+
+ $row=new TTableRow;
+ $this->Table->Rows[]=$row;
+
+ $cell=new TTableHeaderCell;
+ $cell->Text='Header 1';
+ $row->Cells[]=$cell;
+
+ $cell=new TTableHeaderCell;
+ $cell->Text='Header 2';
+ $row->Cells[]=$cell;
+
+ $row=new TTableRow;
+ $this->Table->Rows[]=$row;
+
+ $cell=new TTableCell;
+ $cell->Text='Cell 1';
+ $row->Cells[]=$cell;
+
+ $cell=new TTableCell;
+ $cell->Text='Cell 2';
+ $row->Cells[]=$cell;
+ }
+}
+
+?>
\ No newline at end of file |