diff options
author | wei <> | 2006-05-07 09:47:15 +0000 |
---|---|---|
committer | wei <> | 2006-05-07 09:47:15 +0000 |
commit | 12c16fb3c7314b51d74dcaffdca4d311c6fad8c0 (patch) | |
tree | ef82b73e3a2fa5f8f313a43ce3dcaaf39f569d8f /tests/FunctionalTests/features | |
parent | a7f6c6640ac9295eec3ae2edbb2250179eb85e33 (diff) |
Adding TAutoComplete
Diffstat (limited to 'tests/FunctionalTests/features')
4 files changed, 47 insertions, 3 deletions
diff --git a/tests/FunctionalTests/features/protected/pages/ActiveControls/AutoComplete.page b/tests/FunctionalTests/features/protected/pages/ActiveControls/AutoComplete.page new file mode 100644 index 00000000..f0d78267 --- /dev/null +++ b/tests/FunctionalTests/features/protected/pages/ActiveControls/AutoComplete.page @@ -0,0 +1,26 @@ +<com:TContent ID="Content">
+ <style>
+.autocomplete
+{
+ border:1px solid black;
+ background-color:white;
+}
+.autocomplete .selected
+{
+ background-color: #888;
+}
+ </style>
+ <com:TAutoComplete OnCallback="suggestEmails" ResultPanel.CssClass="autocomplete" />
+
+<p><br /></p>
+<p><br /></p>
+<p><br /></p>
+<p><br /></p>
+<p><br /></p>
+<p><br /></p>
+<p><br /></p>
+<p><br /></p>
+<p><br /></p>
+<p><br /></p>
+
+</com:TContent>
\ No newline at end of file diff --git a/tests/FunctionalTests/features/protected/pages/ActiveControls/AutoComplete.php b/tests/FunctionalTests/features/protected/pages/ActiveControls/AutoComplete.php new file mode 100644 index 00000000..81508000 --- /dev/null +++ b/tests/FunctionalTests/features/protected/pages/ActiveControls/AutoComplete.php @@ -0,0 +1,17 @@ +<?php
+/*
+ * Created on 7/05/2006
+ */
+
+class AutoComplete extends TPage
+{
+ public function suggestEmails($sender, $param)
+ {
+ $words = array('hello', 'world');
+ $sender->setDataSource($words);
+ $sender->dataBind();
+ $sender->render($param->getOutput());
+ }
+}
+
+?>
\ No newline at end of file diff --git a/tests/FunctionalTests/features/protected/pages/ActiveControls/Calculator.php b/tests/FunctionalTests/features/protected/pages/ActiveControls/Calculator.php index bcf0f9cd..9821d8c9 100644 --- a/tests/FunctionalTests/features/protected/pages/ActiveControls/Calculator.php +++ b/tests/FunctionalTests/features/protected/pages/ActiveControls/Calculator.php @@ -2,6 +2,7 @@ /*
* Created on 6/05/2006
*/
+Prado::using('System.Web.UI.ActiveControls.*');
class Calculator extends TPage
{
diff --git a/tests/FunctionalTests/features/protected/pages/ActiveControls/config.xml b/tests/FunctionalTests/features/protected/pages/ActiveControls/config.xml index 1bbc0acf..37988c44 100644 --- a/tests/FunctionalTests/features/protected/pages/ActiveControls/config.xml +++ b/tests/FunctionalTests/features/protected/pages/ActiveControls/config.xml @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?>
<configuration>
- <paths>
- <using namespace="System.Web.UI.ActiveControls.*" />
- </paths>
+ <paths>
+ <using namespace="System.Web.UI.ActiveControls.*" />
+ </paths>
</configuration>
|