v-phone-input / VPhoneInputComposable
Interface: VPhoneInputComposable<Country>
Defined in: dist/types.d.ts:239
Internal
usePhoneInput composable.
Extends
VPhoneInputCountryComposable<Country>.VPhoneInputMessagesComposable<Country>
Type Parameters
Country
Country extends VPhoneInputCountryObject
Properties
ariaLabel
readonlyariaLabel:ComputedRef<string|undefined>
Defined in: dist/types.d.ts:185
aria-label for phone input.
Inherited from
VPhoneInputMessagesComposable.ariaLabel
countries
readonlycountries:ComputedRef<Country[]>
Defined in: dist/types.d.ts:94
List of available countries.
Inherited from
VPhoneInputCountryComposable.countries
countryAriaLabel
readonlycountryAriaLabel:ComputedRef<string|undefined>
Defined in: dist/types.d.ts:193
aria-label for country input.
Inherited from
VPhoneInputMessagesComposable.countryAriaLabel
countryGuessing
countryGuessing:
Readonly<Ref<boolean>>
Defined in: dist/types.d.ts:271
Tells if a country is currently guessing.
countryInputRef
countryInputRef:
Ref<HTMLElement| {$el:HTMLElement; } |null|undefined>
Defined in: dist/types.d.ts:243
Country input component or element ref on which listeners are bound.
countryLabel
readonlycountryLabel:ComputedRef<string|undefined>
Defined in: dist/types.d.ts:189
Label for country input.
Inherited from
VPhoneInputMessagesComposable.countryLabel
countryObject
countryObject:
WritableComputedRef<Country>
Defined in: dist/types.d.ts:259
Country object value (computed from country input value).
defaultCountry
readonlydefaultCountry:ComputedRef<Country|null>
Defined in: dist/types.d.ts:106
Default country to use.
Inherited from
VPhoneInputCountryComposable.defaultCountry
example
readonlyexample:ComputedRef<string>
Defined in: dist/types.d.ts:177
Formatted example of phone number for current country.
Inherited from
VPhoneInputMessagesComposable.example
fallbackCountry
readonlyfallbackCountry:ComputedRef<Country>
Defined in: dist/types.d.ts:110
Fallback country to use.
Inherited from
VPhoneInputCountryComposable.fallbackCountry
findCountry
readonlyfindCountry:ComputedRef<(value) =>Country|null>
Defined in: dist/types.d.ts:114
Find a country object using a country object or two-letter code.
Inherited from
VPhoneInputCountryComposable.findCountry
formatPhoneInputValue()
formatPhoneInputValue: () =>
void
Defined in: dist/types.d.ts:275
Trigger phone input value formatting.
Returns
void
invalidMessage
readonlyinvalidMessage:ComputedRef<string|undefined>
Defined in: dist/types.d.ts:201
Invalid message for phone input.
Inherited from
VPhoneInputMessagesComposable.invalidMessage
label
readonlylabel:ComputedRef<string|undefined>
Defined in: dist/types.d.ts:181
Label for phone input.
Inherited from
VPhoneInputMessagesComposable.label
phone
phone:
Ref<string|null>
Defined in: dist/types.d.ts:255
Phone input value.
phoneInputRef
phoneInputRef:
Ref<HTMLElement| {$el:HTMLElement; } |null|undefined>
Defined in: dist/types.d.ts:249
Phone input component or element ref on which listeners are bound.
phoneObject
phoneObject:
ComputedRef<ParsedPhoneNumber|null>
Defined in: dist/types.d.ts:263
Phone object value (computed from phone input value).
phoneValid
phoneValid:
ComputedRef<boolean|null>
Defined in: dist/types.d.ts:267
Phone object valid state (might be null if validation is disabled).
placeholder
readonlyplaceholder:ComputedRef<string|undefined>
Defined in: dist/types.d.ts:197
Placeholder for phone input.
Inherited from
VPhoneInputMessagesComposable.placeholder
preferredCountries
readonlypreferredCountries:ComputedRef<Country[]>
Defined in: dist/types.d.ts:98
List of available preferred countries.
Inherited from
VPhoneInputCountryComposable.preferredCountries
resolveMessage
readonlyresolveMessage:ComputedRef<<Message>(message) =>Messageextendsnull|undefined?string|undefined:string>
Defined in: dist/types.d.ts:205
Resolve a message using current context.
Inherited from
VPhoneInputMessagesComposable.resolveMessage
unpreferredCountries
readonlyunpreferredCountries:ComputedRef<Country[]>
Defined in: dist/types.d.ts:102
List of available unpreferred countries.