ip
| Category | String Format |
| Related | ipv4 · ipv6 |
| Bundle size | 467 B |
Validates that the value is a valid IPv4 or IPv6 address.
Usage
vue
<VfText name="server" label="Server address" rules="ip" />vue
<template>
<VfText name="server" label="Server address" rules="ip" />
</template>ts
{
server: {
type: 'text',
label: 'Server address',
rules: 'ip',
},
}Error Messages
| Key | Default Message |
|---|---|
rule_ip_error | The {attribute} must be a valid IP address. |