| 1 | <?php |
||
| 14 | class Textarea extends BaseElement |
||
| 15 | { |
||
| 16 | use Autofocus; |
||
| 17 | use Placeholder; |
||
| 18 | use Name; |
||
| 19 | use Required; |
||
| 20 | use Disabled; |
||
| 21 | use Readonly; |
||
| 22 | use MinMaxLength; |
||
| 23 | |||
| 24 | protected $tag = 'textarea'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param string|null $value |
||
| 28 | * |
||
| 29 | * @return static |
||
| 30 | * @throws \Spatie\Html\Exceptions\InvalidHtml |
||
| 31 | */ |
||
| 32 | public function value($value) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param int $rows |
||
| 39 | * |
||
| 40 | * @return static |
||
| 41 | */ |
||
| 42 | public function rows(int $rows) |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @param int $cols |
||
| 49 | * |
||
| 50 | * @return static |
||
| 51 | */ |
||
| 52 | public function cols(int $cols) |
||
| 56 | } |
||
| 57 |