Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

md-date-picker

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

md-date-picker

Angular Material Customizable Date Picker Directive

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
17
increased by13.33%
Maintainers
1
Weekly downloads
 
Created
Source

md-date-picker

angular material customizable date picker directive/component

Demo

  • clone repository
  • npm install
  • gulp serve

Dependencies

angularjs, angular material

usage

bower install md-date-picker --save
//or
npm install md-date-picker --save
//module
var app = angular.module('app', ['md-date-picker']);
//options
$scope.specialDaysClass['8/5/2017'] = 'blue-day'; // blue color on saturday 
$scope.specialDaysClass['1/1/2017'] = { // red color on new years day with title
  class: 'red-day',
  title: 'New Year',
};
// sample custom css
.blue-day {
  color: blue;
}
.red-day {
  color: blue;
}
<!--default-->
<md-date-picker ng-model="date" on-change="date = $date" placeholder="Select Date"></md-date-picker>
<!--show only days on current month view-->
<md-date-picker current-month-view-dates-only="true" ng-model="date" on-change="date = $date"></md-date-picker>
<!-- with special days calss and promise handling -->
<md-date-picker loading="loading" date-class="specialDaysClass" on-render="onRenderDatePicker($month, $year)" ng-model="date" on-change="date = $date"></md-date-picker>
<!-- customizable date format -->
<md-date-picker ng-model="custom" format="EEE, MMM dd, yyyy" on-change="custom = $date"></md-date-picker>
clone repository and run gulp for demo http://localhost:3000

md-date-picker Screenshot

Todos

  • Enhancements
  • Optimizations
  • Unit Tests

License

MIT

Version 0.0.1

Keywords

FAQs

Package last updated on 03 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc