summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/JuiControls/Samples/TJuiResizable/Home.php
blob: e4f126e1ca409b74402933d986164b2912abe0ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php

class Home extends TPage
{
	protected function resize1_start($sender, $param)
	{
		$size=$param->getCallbackParameter()->size;
		$this->label1->Text.="<br/>Start: ".intval($size->width)." x ".intval($size->height);
	}

	protected function resize1_stop($sender, $param)
	{
		$size=$param->getCallbackParameter()->size;
		$this->label1->Text.="<br/>Stop: ".intval($size->width)." x ".intval($size->height);
	}

	protected function check1($sender, $param)
	{
		$this->resize1->getOptions()->alsoResize = $sender->getChecked() ? '#box' : '';
	}

	protected function check2($sender, $param)
	{
		$this->resize1->getOptions()->animate = TPropertyValue::ensureString($sender->getChecked());
	}

	protected function check3($sender, $param)
	{
		$this->resize1->getOptions()->grid = $sender->getChecked() ? '30' : false;
	}
}