OrionPhone
<o-phone> displays a phone number field.
The number will be formatted depending on the selected country.
Usage
PhoneMobile PhoneFlag
Favorites countries
Using a reference seen on orion phone, you can access orion select instance _country to enter your favorite countries.
You have to use the Orion.Country type to create your list of favorite. You can find all country here.
PhonePlayground
VModels
Name
vModel
VModelType = undefinedphoneCountryCode
string | undefined = undefinedphoneNumber
string | undefined = undefinedProps
Name
autofocus
boolean = undefinedclearable
boolean = undefinedclearToNull
boolean = undefineddisabled
boolean = undefineddonetyping
number = undefinedflag
boolean = undefinedforceLabelFloating
boolean = undefinedinheritValidationState
boolean = undefinedlabel
string = undefinedmobile
boolean = undefinedplaceholder
string = undefinedprefixFontIcon
string = undefinedprefixIcon
Orion.Icon = undefinedreadonly
boolean = undefinedrequired
boolean = undefinedselectOnFocus
boolean = undefinedsize
Orion.Size = 'md' suffixFontIcon
string = undefinedsuffixIcon
Orion.Icon = undefinedtype
string = 'tel'validation
string | ((val: any) => boolean) | Orion.Validator.Rule | Orion.Validation.Rule | boolean = undefinedvalidationErrorMessage
string = undefinedEvents
Name
Payload type
focus
FocusEventblur
FocusEventinput
Tchange
Tclear
PublicInstance
Name
Type
isValidMobile
() => boolean_country
() => {
getSearchTerm: () => string | undefined;
setSearchTerm: (val?: string) => string | undefined;
setFavoritesOptions: (val: unknown[]) => unknown[];
triggerSearchAsync: (term?: string) => Promise<void>;
togglePopover: () => void;
blur: import("lodash").DebouncedFuncLeading<(e?: FocusEvent, selection?: boolean) => false | undefined>;
popoverIsShown: () => boolean | undefined;
hasBeenFocus: () => boolean;
isFocus: () => boolean;
focus: () => void;
clear: () => void;
setHasBeenFocus: (value: boolean) => void;
isValid: () => boolean;
_input: () => HTMLInputElement | undefined;
sharedState: () => {
hasBeenFocus: boolean;
isFocus: boolean;
isAutoFilled: boolean;
};
} | undefined_orionInput
() => (HTMLInputElement & {
valueDisplay: () => string;
hasBeenFocus: () => boolean;
isFocus: () => boolean;
focus: () => void;
blur: import("lodash").DebouncedFuncLeading<() => void>;
clear: () => void;
setHasBeenFocus: (value: boolean) => void;
isValid: () => boolean;
_input: () => HTMLInputElement | undefined;
sharedState: () => {
hasBeenFocus: boolean;
isFocus: boolean;
isAutoFilled: boolean;
};
}) | undefinedhasBeenFocus
() => booleanisFocus
() => booleanfocus
() => voidblur
Lodash.debounceclear
() => voidsetHasBeenFocus
(value: boolean) => voidisValid
() => boolean_input
() => HTMLInputElement | undefinedsharedState
() => {
hasBeenFocus: boolean;
isFocus: boolean;
isAutoFilled: boolean;
}