0.1.1 • Published 5 years ago

ngx-pn-input v0.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

NgxPnInput 📞

A small phone number input with country code selector for AngularJS using google-libphonenumber library.

Installation

npm i ngx-pn-input

@Inputs()

InputTypeRequiredDescription
phonestringNoDefines a default phone number
codestringNoDefines a country code for number
basicStyleobjectNoDefines the basic styles for the input

@Outputs()

OutputTypeRequiredDescription
submitPhoneDataEventEmitterYesEmits the phone number and if it's valid or not

Styles

The @input basicStyle allows you to modify some styles into the component:

AttributeTypeRequiredDescription
heightstring (px)NoDefines the height of the phone input
inactiveUnderlineColorstring (hex)NoDefines the underline's color where is inactive
activeUnderlineColorstring (hex)NoDefines the underline's color where is active
fontSizestring (px)NoSets a font size
fontFamilystringNoSet a font family for the all component texts
fontColorstring (hex)NoSets a font color
modalBgColorstring (hex)NoDefines a background color for country modal
optionHoverstring (hex)NoDefines a background color when mouse is over a country option
modalBorderColorstring (hex)NoDefines a border color for country modal
0.1.1

5 years ago

0.1.0

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago