# LInput

# Model

# v-model

  • Type: string
  • Default: ''

The model for the contents of the LInput component. The v-model attribute is optional.

# Props

# validations

  • Type: Array<(value: string) => true | string>
  • Default: []

An array of validation methods for the contents of the LInput component. Each validation should return true if the contents of the LInput component are valid and an error string if the contents are invalid.

# hide-errors

  • Type: boolean
  • Default: false

Indicates whether or not to hide the errors of the LInput component. If true, no error will be rendered in the HTML.

# Exposed Attributes

# valid

  • Type: boolean

Indicates whether or not the LInput component's contents are valid. When this attribute gets called, the lazy validations will start to be executed (if they weren't being executed before). Please note that this attribute's value gets assigned by watching the field's content, so calling it multiple times won't run the validations multiple times.

# error

  • Type: string

Indicates the first failed validation's error string.