Input (Textbox)

GITHUB

To create text input element use this component.


Code:

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

Examples:





Notes:

  • You can use .fv-input class to custom element and set .placeholder class to child element for placeholder style.
  • This component wrapped to normal html input 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.