All Projects → atais → angular-eonasdan-datetimepicker

atais / angular-eonasdan-datetimepicker

Licence: MIT License
A wrapper directive around the Eonasdan Datepicker v4 component.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to angular-eonasdan-datetimepicker

s-date-range-picker
📅 A date range picker built with Svelte
Stars: ✭ 13 (-79.37%)
Mutual labels:  datepicker, date-picker, datetimepicker
Datepicker
仿滴滴出行预约打车IOS风格3D时间选择器 🌲
Stars: ✭ 118 (+87.3%)
Mutual labels:  datepicker, date-picker, datetimepicker
DatePicker
html价格日历控件
Stars: ✭ 21 (-66.67%)
Mutual labels:  datepicker, date-picker
monthyear-picker
Month and Year picker library for Android
Stars: ✭ 34 (-46.03%)
Mutual labels:  datepicker, date-picker
flutter date picker timeline
Gregorian and Jalali customizable date picker as a horizontal timeline
Stars: ✭ 29 (-53.97%)
Mutual labels:  datepicker, date-picker
nativescript-datetimepicker
Plugin with date and time picking fields
Stars: ✭ 26 (-58.73%)
Mutual labels:  datepicker, datetimepicker
nepali-date-picker
Nepali Date Picker jQuery Plugin 🇳🇵
Stars: ✭ 71 (+12.7%)
Mutual labels:  datepicker, date-picker
react-calendar
A no dependencies, lightweight and feature-rich ⚡ calendar component for react.
Stars: ✭ 68 (+7.94%)
Mutual labels:  datepicker, date-picker
Datepicker
Get a date with JavaScript! A datepicker with no dependencies.
Stars: ✭ 212 (+236.51%)
Mutual labels:  datepicker, date-picker
vue3-date-time-picker
Datepicker component for Vue 3
Stars: ✭ 157 (+149.21%)
Mutual labels:  datepicker, datetimepicker
yii2-datetime-widgets
Datetime widgets for Yii2
Stars: ✭ 22 (-65.08%)
Mutual labels:  datepicker, datetimepicker
Flatpickr
lightweight, powerful javascript datetimepicker with no dependencies
Stars: ✭ 14,575 (+23034.92%)
Mutual labels:  datetime-picker, datepicker
Adm Datetimepicker
Pure AngularJs dateTimePicker
Stars: ✭ 244 (+287.3%)
Mutual labels:  datepicker, datetimepicker
vuejs3-datepicker
vue 3 datepicker. supports disabling, highlighting of dates and programmatic access of date.
Stars: ✭ 23 (-63.49%)
Mutual labels:  datepicker, date-picker
Vuejs Datepicker
A simple Vue.js datepicker component. Supports disabling of dates, inline mode, translations
Stars: ✭ 2,529 (+3914.29%)
Mutual labels:  datepicker, date-picker
django-flatpickr
Flatpicker based DatePickerInput, TimePickerInput and DateTimePickerInput with date-range-picker functionality for django >= 2.0
Stars: ✭ 41 (-34.92%)
Mutual labels:  date-picker, datetimepicker
svelty-picker
Simple date & time picker in svelte
Stars: ✭ 38 (-39.68%)
Mutual labels:  datepicker, datetimepicker
Material Ui Pickers
Date & Time pickers, built with ❤️ for @material-ui/core
Stars: ✭ 2,291 (+3536.51%)
Mutual labels:  datepicker, datetimepicker
Heyui
🎉UI Toolkit for Web, Vue2.0 http://www.heyui.top
Stars: ✭ 2,373 (+3666.67%)
Mutual labels:  datepicker, datetimepicker
NodaTimePicker
A Date/Time picker component library for Blazor using NodaTime
Stars: ✭ 49 (-22.22%)
Mutual labels:  datepicker, datetimepicker

angular-eonasdan-datetimepicker Build Status npm version

Having problems using the wrapper?
Please, post an issue on GitHub and provide a plunker with your question.

Installation

  1. Install the directive via bower or npm (or download it manually, as you prefer)
npm install angular-eonasdan-datetimepicker --save
bower install angular-eonasdan-datetimepicker --save
  1. Inject the datetimepicker directive in you angular app:
angular.module('myApp', ['ae-datetimepicker']);
  1. Start using!

Examples

Directive usage

Simply add datetimepicker tag and add the ng-model (required) attribute. Currently the datetimepicker tag can be added on either input-group or the input element.

Option #1

<div class="input-group" datetimepicker ng-model="vm.date">
    <input class="form-control"/>
    <span class="input-group-addon">
        <span class="glyphicon glyphicon-calendar"></span>
    </span>
</div>

Option #2

<div class="input-group">
    <input class="form-control" datetimepicker ng-model="vm.date"/>
    <span class="input-group-addon">
        <span class="glyphicon glyphicon-calendar"></span>
    </span>
</div>

In both cases the directive will work exactly the same. Also triggering the callendar with the icon in span will work in both cases. However if you wish to use a custom validation directive, you probably would want to add the directive in input element. See the: From/To validation example

Parameters

ng-model

If ng-model is null or undefined, the initial value will not be set!

options

With options attribute you can pass an object containing all the required configuration for your datetimepicker. All the options available in the original library are supported. Check the list of options on official website: http://eonasdan.github.io/bootstrap-datetimepicker/Options/

<div class="input-group" datetimepicker ng-model="vm.date" options="vm.options">
vm.options = {
    format: "DD.MM.YYYY",
    maxDate: dateTo
};

on-change

You can pass a function that will be called every time the value of datetimepicker is changed.
See: Example with two, linked datetimepickers

Detailed description of event: http://eonasdan.github.io/bootstrap-datetimepicker/Events/#dpchange

on-click

You can pass a function that will be called every time the datetimepicker is clicked.
The event occurs when you open or close the datetimepicker.

Special thanks

License

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].