All Projects → g1eb → angular-datetime-inputs

g1eb / angular-datetime-inputs

Licence: MIT license
📅 Angular directives for datetime inputs

Programming Languages

CSS
56736 projects
HTML
75241 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to angular-datetime-inputs

Angular Datetime Range
📅 Angular directive for datetime range input
Stars: ✭ 27 (+35%)
Mutual labels:  datetime, input, element, angular-directives
Angular Tooltips
Angularjs tooltips module, add tooltips to your elements - https://720kb.github.io/angular-tooltips
Stars: ✭ 357 (+1685%)
Mutual labels:  directive, angular-directives
Angular Datepicker
Angularjs datepicker module, generate a datepicker on your input element - https://720kb.github.io/angular-datepicker
Stars: ✭ 486 (+2330%)
Mutual labels:  directive, angular-directives
angular-downloader
Angular Downloader is an angularjs directive that enables you to manage browser download - https://720kb.github.io/angular-downloader
Stars: ✭ 16 (-20%)
Mutual labels:  directive, angular-directives
Ngx Infinite Scroll
Infinite Scroll Directive for Angular
Stars: ✭ 1,024 (+5020%)
Mutual labels:  directive, angular-directives
angular2-stretchy
angular2-stretchy is an Angular2 directive that automatically adjusts input width to fit content.
Stars: ✭ 12 (-40%)
Mutual labels:  input, directive
Ngx Digit Only
An Angular directive to only allow [0-9] in the input box when typing, pasting or drag/dropping.
Stars: ✭ 107 (+435%)
Mutual labels:  input, directive
Delorean
Delorean: Time Travel Made Easy
Stars: ✭ 1,793 (+8865%)
Mutual labels:  datetime, datetimes
Jest Date Mock
🌗 Mock `Date` when run unit test cases with jest. Make tests of Date easier.
Stars: ✭ 224 (+1020%)
Mutual labels:  datetime
angular-inviewport
A simple lightweight library for Angular with no other dependencies that detects when an element is within the browser viewport and adds a "sn-viewport-in" or "sn-viewport-out" class to the element
Stars: ✭ 72 (+260%)
Mutual labels:  directive
Go Naturaldate
Natural date/time parsing for Go.
Stars: ✭ 217 (+985%)
Mutual labels:  datetime
Flatpickr
lightweight, powerful javascript datetimepicker with no dependencies
Stars: ✭ 14,575 (+72775%)
Mutual labels:  datetime
InputSimulatorStandard
Input Simulator Standard
Stars: ✭ 54 (+170%)
Mutual labels:  input
Pdd
📅 Tiny date, time diff calculator with piggybacked timers
Stars: ✭ 218 (+990%)
Mutual labels:  datetime
vue-next-admin
🎉🎉🔥基于vue3.x 、Typescript、vite、Element plus等,适配手机、平板、pc 的后台开源免费模板库(vue2.x请切换vue-prev-admin分支)
Stars: ✭ 1,002 (+4910%)
Mutual labels:  element
Blitz
Android Library: Set self-updating string with relative time in TextView (e.g. 5 minutes ago)
Stars: ✭ 217 (+985%)
Mutual labels:  datetime
Kronos.vim
A simple task and time manager. Project moved here:
Stars: ✭ 205 (+925%)
Mutual labels:  datetime
rapp
Cross-platform entry point library
Stars: ✭ 57 (+185%)
Mutual labels:  input
remark-directive
remark plugin to support directives
Stars: ✭ 137 (+585%)
Mutual labels:  directive
ptera
Ptera is DateTime library for Deno
Stars: ✭ 62 (+210%)
Mutual labels:  datetime

Datetime input UI element

This directive is designed to provide easy and intuitive input of moment.js datetime objects.

Desgined to be as simple as possible in order to afford intuitive interactions.

Converted into an angular directive for your convenience :)

Demo

Click here for a live demo.

Date input

Angular directive datetime input - date input

Time input

Angular directive datetime input - time input

Datetime input

Angular directive datetime input - datetime input

Install

  1. Install 'angular-datetime-inputs' with bower
bower install angular-datetime-inputs

or with npm

npm install angular-datetime-inputs
  1. Add 'g1b.datetime-inputs' module to your app config
angular.module('myApp', [
  'g1b.datetime-inputs',
  ......
])
  1. Use any of the directives in a view

For date input only:

<date-input date="date" on-change="print(date)" placeholder="Select date"></date-input>

For time input only:

<time-input time="time" on-change="print(time)" placeholder="Select time"></time-input>

For both date and time input:

<datetime-input datetime="datetime" on-change="print(datetime)" placeholder="Select datetime"></datetime-input>

Attributes

Property Usage Default Required
date moment.js datetime object or a datetime string none no
time moment.js datetime object or a datetime string none no
datetime moment.js datetime object or a datetime string none no
format moment.js compatible date/time format used for parsing initial datetime objects none no
date-format moment.js compatible date format used for display in date and datetime input directives 'DD MMMM YYYY' no
time-format moment.js compatible time format used for display in time and datetime input directives 'HH : mm : ss' no
min-date moment.js datetime object min datetime none no
max-date moment.js datetime object max datetime none no
hour-step step size for hour input 1 no
minute-step step size for minute input 1 no
second-step step size for second input 1 no
on-change Handler function that is fired on change of datetime object none no
on-close Handler function that is fired on close of the edit popover none no
placeholder Placeholder is shown when input object is undefined none no
allow-clear Allow users to clear selected datetime value false no
clear-text Clear text shown in the button used to clear date object Clear no
close-text Close text shown in the button used to close edit popover Close no
css-class custom css class name for datetime presentation none no

Datetime range

If you are looking for a range input of datetime objects, check out angular-datetime-range

Dependencies

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].