| 1 |
<?php |
| 2 |
class Element_Textarea extends Element { |
| 3 |
protected $attributes = array("class" => "pfbc-textarea", "rows" => "5"); |
| 4 |
|
| 5 |
public function jQueryDocumentReady() { |
| 6 |
echo 'jQuery("#', $this->attributes["id"], '").outerWidth(jQuery("#', $this->attributes["id"], '").width());'; |
| 7 |
} |
| 8 |
|
| 9 |
public function render() { |
| 10 |
echo "<textarea", $this->getAttributes("value"), ">"; |
| 11 |
if(!empty($this->attributes["value"])) |
| 12 |
echo $this->attributes["value"]; |
| 13 |
echo "</textarea>"; |
| 14 |
} |
| 15 |
} |
| 16 |
|