* zin: refactor textarea wg.
This commit is contained in:
@@ -46,7 +46,6 @@ function input(): input
|
||||
* int cols
|
||||
* ?string id
|
||||
* ?string class='form-control'
|
||||
* ?string value
|
||||
* ?bool required
|
||||
* ?string placeholder
|
||||
*/
|
||||
|
||||
@@ -7,7 +7,6 @@ class textarea extends wg
|
||||
'name: string',
|
||||
'id?: string',
|
||||
'class?: string',
|
||||
'value?: string',
|
||||
'required?: bool',
|
||||
'placeholder?: string',
|
||||
'rows?: int',
|
||||
@@ -21,6 +20,6 @@ class textarea extends wg
|
||||
|
||||
protected function build()
|
||||
{
|
||||
return h::textarea(set($this->props));
|
||||
return h::textarea(set($this->props), $this->children());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user