summaryrefslogtreecommitdiff
path: root/demos/composer/protected/pages/Layout.php
diff options
context:
space:
mode:
Diffstat (limited to 'demos/composer/protected/pages/Layout.php')
-rw-r--r--demos/composer/protected/pages/Layout.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/demos/composer/protected/pages/Layout.php b/demos/composer/protected/pages/Layout.php
new file mode 100644
index 00000000..a82d2fff
--- /dev/null
+++ b/demos/composer/protected/pages/Layout.php
@@ -0,0 +1,15 @@
+<?php
+
+class Layout extends TTemplateControl
+{
+ public function toggleTopicPanel($sender,$param)
+ {
+ $this->TopicPanel->Visible=!$this->TopicPanel->Visible;
+ if($this->TopicPanel->Visible)
+ $sender->Text="Hide TOC";
+ else
+ $sender->Text="Show TOC";
+ }
+}
+
+?> \ No newline at end of file