diff options
Diffstat (limited to 'demos/quickstart/protected/pages/Controls/Samples/THtmlArea')
| -rw-r--r-- | demos/quickstart/protected/pages/Controls/Samples/THtmlArea/Home.page | 42 | ||||
| -rw-r--r-- | demos/quickstart/protected/pages/Controls/Samples/THtmlArea/Home.php | 21 | 
2 files changed, 63 insertions, 0 deletions
| diff --git a/demos/quickstart/protected/pages/Controls/Samples/THtmlArea/Home.page b/demos/quickstart/protected/pages/Controls/Samples/THtmlArea/Home.page new file mode 100644 index 00000000..71343e64 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/THtmlArea/Home.page @@ -0,0 +1,42 @@ +<com:TContent ID="body">
 +
 +<h1>THtmlArea Samples</h1>
 +
 +<table class="sampletable">
 +
 +<tr><td class="samplenote">
 +THtmlArea with default settings:
 +</td><td class="sampleaction">
 +<com:THtmlArea ID="HtmlArea1" />
 +<com:TButton Text="Submit" OnClick="button1Clicked" />
 +<br/>
 +<com:TLiteral Encode="true" ID="Result1" />
 +</td></tr>
 +
 +<tr><td class="samplenote">
 +THtmlArea with customized size and table toolbar:
 +</td><td class="sampleaction">
 +<com:THtmlArea ID="HtmlArea2" Width="500px" Height="250px">
 +  <prop:Options>
 +    plugins : "table"
 +  	theme_advanced_buttons3 : "tablecontrols"
 +  </prop:Options>
 +</com:THtmlArea>
 +<com:TButton Text="Submit" OnClick="button2Clicked" />
 +<br/>
 +<com:TLiteral Encode="true" ID="Result2" />
 +</td></tr>
 +
 +<tr><td class="samplenote">
 +THtmlArea with visual editting disabled:
 +</td><td class="sampleaction">
 +<com:THtmlArea ID="HtmlArea3" EnableVisualEdit="false" />
 +<br/>
 +<com:TButton Text="Submit" OnClick="button3Clicked" />
 +<br/>
 +<com:TLiteral Encode="true" ID="Result3" />
 +</td></tr>
 +
 +</table>
 +
 +</com:TContent>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Samples/THtmlArea/Home.php b/demos/quickstart/protected/pages/Controls/Samples/THtmlArea/Home.php new file mode 100644 index 00000000..c56b5229 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/THtmlArea/Home.php @@ -0,0 +1,21 @@ +<?php
 +
 +class Home extends TPage
 +{
 +	public function button1Clicked($sender,$param)
 +	{
 +		$this->Result1->Text="You have entered: ".$this->HtmlArea1->Text;
 +	}
 +
 +	public function button2Clicked($sender,$param)
 +	{
 +		$this->Result2->Text="You have entered: ".$this->HtmlArea2->Text;
 +	}
 +
 +	public function button3Clicked($sender,$param)
 +	{
 +		$this->Result3->Text="You have entered: ".$this->HtmlArea3->Text;
 +	}
 +}
 +
 +?>
\ No newline at end of file | 
