1: | <?php |
2: | |
3: | namespace Zippy\Html\Form; |
4: | |
5: | use Zippy\WebApplication; |
6: | |
7: | |
8: | |
9: | |
10: | class TextArea extends TextInput |
11: | { |
12: | |
13: | |
14: | |
15: | public function setResponseData() { |
16: | $this->getTag()->text($this->getValue()); |
17: | } |
18: | |
19: | |
20: | public function setText($text='') { |
21: | $this->setValue($text); |
22: | |
23: | |
24: | if(\Zippy\WebApplication::$app->getRequest()->isAjaxRequest()) { |
25: | $js= "$('#{$this->id}').text('{$text}')" ; |
26: | |
27: | |
28: | \Zippy\WebApplication::$app->getResponse()->addAjaxResponse($js) ; |
29: | } |
30: | |
31: | } |
32: | } |
33: | |