Textarea

GITHUB

To create textarea element use this component.


Code:

  
HTML
<fvTextarea v-model="input" />
  
Javascript
export default { data () { return { input: undefined } } }

Examples:










Notes:

  • This component wrapped to normal html textarea element, so custom events and attributes are available on this.

API:

NameTypeDefaultDescription
value*
---
---
Value of input
required
Boolean or Function
false
Does input required to fill? Also with function type you can pass function with one argument (fn(value){}) and return Boolean value.
autoHeight
Boolean
false
Calculate and set height of element at runtime.