summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/JuiControls/Samples/TJuiSelectable
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2014-02-08 12:29:52 +0100
committerFabio Bas <ctrlaltca@gmail.com>2014-02-08 12:29:52 +0100
commit8c78c2f6dda9c9075509e99687e1e6f41ca9ac0f (patch)
tree54ee7fff46ed779d3c732cab09f9586670020db6 /demos/quickstart/protected/pages/JuiControls/Samples/TJuiSelectable
parent3b73b49c862563f92b678db4791a3fb82a9bd886 (diff)
TJuiSelectable events
Diffstat (limited to 'demos/quickstart/protected/pages/JuiControls/Samples/TJuiSelectable')
-rw-r--r--demos/quickstart/protected/pages/JuiControls/Samples/TJuiSelectable/Home.page5
-rw-r--r--demos/quickstart/protected/pages/JuiControls/Samples/TJuiSelectable/Home.php4
2 files changed, 6 insertions, 3 deletions
diff --git a/demos/quickstart/protected/pages/JuiControls/Samples/TJuiSelectable/Home.page b/demos/quickstart/protected/pages/JuiControls/Samples/TJuiSelectable/Home.page
index 4af5d637..cd778625 100644
--- a/demos/quickstart/protected/pages/JuiControls/Samples/TJuiSelectable/Home.page
+++ b/demos/quickstart/protected/pages/JuiControls/Samples/TJuiSelectable/Home.page
@@ -29,7 +29,10 @@
<tr><td class="samplenote">
Default options with a little css applied:
</td><td class="sampleaction">
- <com:TJuiSelectable ID="repeater1" onSelectedIndexChanged="repeater1_onSelectedIndexChanged"/>
+ <com:TJuiSelectable
+ ID="repeater1"
+ OnStop="repeater1_onStop"
+ />
<com:TActiveLabel ID="label1" />
</td></tr>
diff --git a/demos/quickstart/protected/pages/JuiControls/Samples/TJuiSelectable/Home.php b/demos/quickstart/protected/pages/JuiControls/Samples/TJuiSelectable/Home.php
index cf8d40f1..ada38408 100644
--- a/demos/quickstart/protected/pages/JuiControls/Samples/TJuiSelectable/Home.php
+++ b/demos/quickstart/protected/pages/JuiControls/Samples/TJuiSelectable/Home.php
@@ -21,10 +21,10 @@ class Home extends TPage
}
}
- public function repeater1_onSelectedIndexChanged($sender, $param)
+ public function repeater1_onStop($sender, $param)
{
$this->label1->Text="Selected items:";
- $items = $param->getSelectedIndexes();
+ $items = $param->getCallbackParameter()->index;
foreach($items as $index)
$this->label1->Text.=' '.$this->data[$index];