TextareaItem

Multi-line text input

Import

import { TextareaItem } from  'mand-mobile-next'

Vue.createApp().component(TextareaItem.name, TextareaItem)

Code Examples

API

TextareaItem Props

PropsDescriptionTypeDefaultNote
titletitle of textareaString--
placeholderplaceholder of textareaString--
v-modelvalue of textareaString-
max-lengthmax length of textareaString/Number--
autosizeDose the Textarea resize with contentBooleanfalse-
max-heightThe max height of textarea with autosize=trueString/Number'40'rely on autosize
solidthe width of title is fixed or notBooleantrue
readonlyreadonlyBooleanfalse-
disableddisabledBooleanfalse-
clearableclearableBooleanfalse-
rowsrowsString/Number'3'-
errorerror messageString--

TextareaItem Slots

the slot of footer

TextareaItem Events

focus()

Input gets focus

blur()

Input loses focus

getValue()

Get value of input

TextItem Events

@focus(name)

Textarea gets focus

@blur(name)

Textarea loses blur

@change(name, value)

Change the value of Textarea

@keyup(name, event)

key press

@keydown(name, event)

key release