OrionPhone
<o-phone> affiche un champ de saisie de numéro de téléphone.
Le numéro sera formatté en fonction du pays sélectionné.
Usage
PhoneMobile PhoneFlag
Pays préférés
Vous pouvez, en utilisant une référence vue sur orion phone, accèder à l'instance de l'orion select _countrypour pouvoir renseigner vos pays favoris.
Pour ajouter vos pays favoris, vous devez utiliser le type Orion.Country. Vous pourrez trouver la liste des pays ici et ainsi obtenir l'objet Orion complet.
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;
}