3.11.9 • Published 7 years ago

material-datetimepicker v3.11.9

Weekly downloads
15
License
-
Repository
github
Last release
7 years ago

Material DateTimePicker

Compatible with JQuery and AngularJS =)

Originaly designed for Bootstrap Material, the V3.* is now completely standalone and responsive. Project based on "T00rk/bootstrap-material-datetimepicker" initiative, including layout adjustments and adapting to use within AngularJS.

  • momentJS
  • jQuery

Bower install de dependency

$ bower install ng-datetimepicker-material --save

AngularJS

This component is compatible with AngularJS 1.*

Implementation

<ng-datetimepicker ng-model="dataModel" ng-open="noKadete"></ng-datetimepicker>

<!-- Click the icon below -->
<i class="fa fa-bell" ng-click="noKadete()"></i>

Parameters

NameTypeDinamicMandatoryDescription
ng-modelStringtruetrueScope of the attribute that will be the model
ng-openFunctiontruetrueFunction pointer that opens the component
ng-mindateDatetruetrueLowest possible date

Module AngularJS include

angular.module('example', ["ngDatetimepicker"]);

JQuery

This component is compatible with JQuery

Events on jQquery

NameParametersDescription
beforeChangeevent, dateOK button is clicked
changeevent, dateOK button is clicked and input value is changed
yearSelectedevent, dateNew year is selected
dateSelectedevent, dateNew date is selected
openeventdatepicker is opened
closeeventdatepicker is closed

Methods on jQquery

$('input').bootstrapMaterialDatePicker('setDate', moment());
NameParameterDescription
setDate(String|Date|Moment)Set initial date
setMinDate(String|Date|Moment)Set minimum selectable date
setMaxDate(String|Date|Moment)Set maximum selectable date
destroyNULLDestroy the datepicker

Metrics

Throughput Graph