ps-input-time

WebJar for ps-input-time

Лицензия

Лицензия

MIT
Категории

Категории

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

Группа

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

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

angular-ps-input-time
Последняя версия

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

0.2.2
Дата

Дата

Тип

Тип

jar
Описание

Описание

ps-input-time
WebJar for ps-input-time
Ссылка на сайт

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

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

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

https://github.com/randallmeeker/ps-input-time

Скачать angular-ps-input-time

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

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

Зависимости

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

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

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

psInputTime

AngularJS time selector

DEMO

Angular Strap did not easily play well with other date time objects and editing the time in an INPUT was preferable to AngularUI's control.

// include js scripts
<script src="js/angular.js"></script>
<script src="js/ps-input-time.js"></script>
// add to your app
var app = angular.module('myApp', ['ps.inputTime']);
// add input
<input type="text" ng-model="myTime" ps-input-time>

Supports input formats: HHmm, hh:mmAM, HH:mm for easy keyboard input. Use arrow keys (up,down,left,right,tab) to select and adjust time.

ngModel: required, watched, date object, default: local now

fixedDay: optional, boolean, default: false. If time can move past a 24 hour restriction and adjust the day of the date object.

minuteStep: optional, numeric, default: 5. How many minutes to increase time when using the UP arrow key. The down arrow key always is 1 minute.

min/max: optional, watched, date object, forces limits. Important when fixedDay = false

If your interested please rip this apart. Looking for lessons in proper use of AngularJs, javaScript and GitHub.

ToDo

  • Wrap a popup (like AngularUI) for easy mobile input, or if possible, revert to html5 input=time for mobile.

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

Версия
0.2.2