Text Field

Statusstable
Published5.0.0
*
Your publicly visible screen name.
<jds-text-field label="Username" v-model="name" required placeholder="Your username here">
    <template #hint>
        Your publicly visible screen name.
    </template>
    <template #error="{ required }">
        <template v-if="required">We need to know who you are!</template>
    </template>
</jds-text-field>

Validation

Supported rules:

Rule / slot propPurposeConfiguration
requiredMust not be empty text.required attribute.
maxSet a high limit to a number value.max attribute when type="number".
minSet a low limit to a number value.min attribute when type="number".
max_lengthSet a high length limit to a string value.max-length attribute.
min_lengthSet a low length limit to a string value.min-length attribute.
patternEnsure string value matches a regex.pattern attribute; accepts a JS regex.
emailEnsure string is a valid email.Applies automatically when type=email.
urlEnsure string is a valid URL.Applies automatically when type=url.
denyEnsure value is not a member of a given list of forbidden values.deny attribute.

JdsTextField

Props

PropValueDefault
namestringnone
labelstringnone
valuestringnone
widthnumber null
typetextnumberemailurl 'text'
placeholderstring (Empty string)
disabledboolean false
allowLoggingboolean false
requiredboolean false
maxLengthstring false
minLengthstring false
maxstring false
minstring false
denyArray null
patternstringnone

Events

EventPayload
blur
input

Slots

Slot
label
hint
error
BindingType

Changelog

JOBILLA DESIGN SYSTEM