summaryrefslogtreecommitdiff
path: root/demos/quickstart
diff options
context:
space:
mode:
Diffstat (limited to 'demos/quickstart')
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/Home.page6
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTableRow/Home.page20
-rw-r--r--demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTableRow/Home.php22
3 files changed, 48 insertions, 0 deletions
diff --git a/demos/quickstart/protected/pages/ActiveControls/Home.page b/demos/quickstart/protected/pages/ActiveControls/Home.page
index 4897226c..d23f689f 100644
--- a/demos/quickstart/protected/pages/ActiveControls/Home.page
+++ b/demos/quickstart/protected/pages/ActiveControls/Home.page
@@ -85,6 +85,12 @@ TActiveButton</a> control. See also the later part of the <a href="?page=Tutoria
</li>
<li>
+ * <a href="?page=ActiveControls.ActiveTableRow">TActiveTableRow and TActiveTableCell</a>
+ represents a table row (or cell) which can be updated on callback, and can raise a callback
+ when clicked.
+ </li>
+
+ <li>
* <a href="?page=ActiveControls.ActiveTextBox">TActiveTextBox</a>
represents a text input field on a Web page.
It can collect single-line, multi-line or password text input from users.
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTableRow/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTableRow/Home.page
new file mode 100644
index 00000000..e96a22a5
--- /dev/null
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTableRow/Home.page
@@ -0,0 +1,20 @@
+<com:TContent ID="body">
+<!-- $Id: Home.page 1650 2007-01-24 06:55:32Z wei $ -->
+<h1>TActiveTableRow and TActiveTableCellSamples</h1>
+
+<com:TTable CssClass="sampletable">
+ <com:TActiveTableRow id="row1" CssClass="sampletable">
+ <com:TActiveTableCell id="r1c1" OnCellSelected="clickCell">Click to change cell content</com:TActiveTableCell>
+ <com:TActiveTableCell id="r1c2"OnCellSelected="clickCell">Click to change cell content</com:TActiveTableCell>
+ </com:TActiveTableRow>
+ <com:TActiveTableRow id="row2" CssClass="sampletable" OnRowSelected="clickRow">
+ <com:TActiveTableCell id="r2c1">Click to change row content</com:TActiveTableCell>
+ <com:TActiveTableCell id="r2c2">Click to change row content</com:TActiveTableCell>
+ </com:TActiveTableRow>
+
+</com:TTable>
+
+<com:TActiveLabel id="lblResult"/>
+<com:TJavascriptLogger />
+
+<div class="last-modified">$Id: Home.page 1650 2007-01-24 06:55:32Z wei $</div></com:TContent> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTableRow/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTableRow/Home.php
new file mode 100644
index 00000000..b056eba8
--- /dev/null
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTableRow/Home.php
@@ -0,0 +1,22 @@
+<?php
+
+// $Id: Home.php 1405 2006-09-10 01:03:56Z wei $
+class Home extends TPage
+{
+
+ public function clickCell ($sender, $param)
+ {
+ $sender->Text .= "<br/>Clicked";
+ $this->lblResult->Text='You clicked on cell #'.$param->SelectedCellIndex.' with id='.$sender->id;
+ $sender->render($param->NewWriter);
+ }
+
+ public function clickRow ($sender, $param)
+ {
+ $sender->BackColor="yellow";
+ $this->lblResult->Text='You clicked on row #'.$param->SelectedRowIndex.' with id='.$sender->id;
+ $sender->render($param->NewWriter);
+ }
+}
+
+?> \ No newline at end of file