diff options
author | Fabio Bas <ctrlaltca@gmail.com> | 2014-02-08 12:29:52 +0100 |
---|---|---|
committer | Fabio Bas <ctrlaltca@gmail.com> | 2014-02-08 12:29:52 +0100 |
commit | 8c78c2f6dda9c9075509e99687e1e6f41ca9ac0f (patch) | |
tree | 54ee7fff46ed779d3c732cab09f9586670020db6 /demos | |
parent | 3b73b49c862563f92b678db4791a3fb82a9bd886 (diff) |
TJuiSelectable events
Diffstat (limited to 'demos')
-rw-r--r-- | demos/quickstart/protected/pages/JuiControls/Samples/TJuiSelectable/Home.page | 5 | ||||
-rw-r--r-- | demos/quickstart/protected/pages/JuiControls/Samples/TJuiSelectable/Home.php | 4 |
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]; |