momentjs-angular-module

WebJar for momentjs-angular-module

Лицензия

Лицензия

MIT
Категории

Категории

JavaScript Языки программирования Angular Взаимодействие с пользователем Веб-фреймворки
Группа

Группа

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

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

momentjs-angular-module
Последняя версия

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

0.3.4
Дата

Дата

Тип

Тип

jar
Описание

Описание

momentjs-angular-module
WebJar for momentjs-angular-module
Ссылка на сайт

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

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

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

https://github.com/orcasnet/momentjs-angular-module

Скачать momentjs-angular-module

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

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

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.webjars.bower : angular jar [1.2.0,2)
org.webjars.bower : momentjs jar [2.5.0,3)

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

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

Angular Moment.js Module

Build Status Code Climate Test Coverage

An AngularJS module to add Moment.js functionality to Angular. No jQuery necessary!

Requirements

Documentation

Please see the [Project Wiki] [3] for documentation. [3]: https://github.com/orcasnet/momentjs-angular-module/wiki

Directive

<input type="moment"
       ng-model="{string}"
       [format="{string}"]
       [model-format="{string}"]
       [view-format="{string}"]
       [min="{expression}"]
       [max="{expression}"]
       [step="{string}"]>
</input>

Parameters

Param Type Default Details
format (optional) String Specify a single Moment format for both the model and view values. Overridden if modelFormat or viewFormat is set. Sets date validation error key if the date is invalid.
modelFormat (optional) String $moment.$defaultModelFormat Specify a Moment format for the model value. Sets date validation error key if the model date is invalid.
viewFormat (optional) String $moment.$defaultViewFormat Specify a Moment format for the view value. Sets date validation error key if the view date is invalid.
min (optional) Expression Sets min validation error key if the date value is before the min date. Expected value is a date string or an array of a date string and a Moment format to parse it with.
max (optional) Expression Sets max validation error key if the date value is after the max date. Expected value is a date string or an array of a date string and a Moment format to parse it with.
step (optional) String 1 day Specify a quantity and a unit of time to step the date by on mouse wheel up/down, up/down arrow keys, or plus/minus keys. Pressing shift causes the date to step by one greater or lesser unit of time.

Note that all parameters can be bound data-bound and dynamic. If modelFormat is changed, the view value will be reparsed to provide the new format for the model value, and conversely if viewFormat is changed.

org.webjars.bower

CFS/SPF

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

Версия
0.3.4