summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/JuiControls/Samples/TJuiProgressbar/Home.php
diff options
context:
space:
mode:
Diffstat (limited to 'demos/quickstart/protected/pages/JuiControls/Samples/TJuiProgressbar/Home.php')
-rw-r--r--demos/quickstart/protected/pages/JuiControls/Samples/TJuiProgressbar/Home.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/demos/quickstart/protected/pages/JuiControls/Samples/TJuiProgressbar/Home.php b/demos/quickstart/protected/pages/JuiControls/Samples/TJuiProgressbar/Home.php
index 8f6d9ec6..247b88c8 100644
--- a/demos/quickstart/protected/pages/JuiControls/Samples/TJuiProgressbar/Home.php
+++ b/demos/quickstart/protected/pages/JuiControls/Samples/TJuiProgressbar/Home.php
@@ -11,4 +11,14 @@ class Home extends TPage
{
$this->label1->Text="Progressbar changed.";
}
+
+ public function pbar2_minus($sender,$param)
+ {
+ $this->pbar2->getOptions()->value = max(0, $this->pbar2->getOptions()->value - 10);
+ }
+
+ public function pbar2_plus($sender,$param)
+ {
+ $this->pbar2->getOptions()->value = min($this->pbar2->getOptions()->max, $this->pbar2->getOptions()->value + 10);
+ }
} \ No newline at end of file