Skip to content

Commit 1693bf9

Browse files
committed
Add TextArea rows & cols fluent attribute setter.
1 parent 00195f3 commit 1693bf9

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/Html/Editor/Fields/TextArea.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,22 @@
55
class TextArea extends Field
66
{
77
protected $type = 'textarea';
8+
9+
/**
10+
* @param int $value
11+
* @return static
12+
*/
13+
public function rows($value)
14+
{
15+
return $this->attr('rows', $value);
16+
}
17+
18+
/**
19+
* @param int $value
20+
* @return static
21+
*/
22+
public function cols($value)
23+
{
24+
return $this->attr('cols', $value);
25+
}
826
}

0 commit comments

Comments
 (0)