angular-tel-input

WebJar for angular-tel-input

Лицензия

Лицензия

MIT
Категории

Категории

Github Инструменты разработки Контроль версий Angular Взаимодействие с пользователем Веб-фреймворки
Группа

Группа

org.webjars.bower
Идентификатор

Идентификатор

github-com-carlosrymer-angular-tel-input
Последняя версия

Последняя версия

1.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

angular-tel-input
WebJar for angular-tel-input
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/carlosrymer/angular-tel-input

Скачать github-com-carlosrymer-angular-tel-input

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.bower/github-com-carlosrymer-angular-tel-input/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>github-com-carlosrymer-angular-tel-input</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/github-com-carlosrymer-angular-tel-input/
implementation 'org.webjars.bower:github-com-carlosrymer-angular-tel-input:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.bower/github-com-carlosrymer-angular-tel-input/
implementation ("org.webjars.bower:github-com-carlosrymer-angular-tel-input:1.0.0")
'org.webjars.bower:github-com-carlosrymer-angular-tel-input:jar:1.0.0'
<dependency org="org.webjars.bower" name="github-com-carlosrymer-angular-tel-input" rev="1.0.0">
  <artifact name="github-com-carlosrymer-angular-tel-input" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='github-com-carlosrymer-angular-tel-input', version='1.0.0')
)
libraryDependencies += "org.webjars.bower" % "github-com-carlosrymer-angular-tel-input" % "1.0.0"
[org.webjars.bower/github-com-carlosrymer-angular-tel-input "1.0.0"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

angular-tel-input

An AngularJS component supporting 10-digit telephone input fields based on the North American Numbering Plan (does not support all phone conventions).

Installation

This Angular component is available via bower and npm. To install:

bower install angular-tel-input --save

OR

npm install angular-tel-input --save

Usage

You must either bundle the installed script in your app via build scripts or include directly in your HTML:

<script src="path/to/source/dist/angular-tel-input.min.js" type="text/javascript"></script>

Include the module in your application:

angular.module('app', ['ngTelInput']);

Include the component in a form where needed:

<ng-form name="Form">
  <tel-input input-name="'phone'" is-required="true" number="phoneNumber" on-change="change()" on-blur="blur()" on-focus="focus()"></tel-input>
</ng-form>

The following bindings are supported:

  • number (required): This is the model we want to update. Note that the raw, unformatted number will be bound rather than the formatted value.
  • inputName (optional): This must be a string, and represents the input name. This can be useful with forms. If using form validation, you must use ngForm.
  • isRequired (optional): Whether the input should be required or not as part of the form.
  • onChange (optional): A function to call when the value changes.
  • onBlur (optional): A function to call when the input is blurred.
  • onFocus (optional): A function to call when the input is focused.

Demo

https://thimbleprojects.org/carlosrymer/139559

Contributing

Want to contribute? Great! It's very simple. Just make a pull request and I'll review your changes as soon as possible.

Todos

  • Write Unit Tests

License

MIT

Версии библиотеки

Версия
1.0.0