Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
modalmddatepicker
Advanced tools
Just another native Angular Material-Design DatePicker Component. see demo
You can choose your installation method:
bower install modal-md-datePicker --save
npm install modalmddatepicker --save
Include modal-md-datepicker.min.js in your application.
<script src="bower_components/modalmddatePicker/modal-md-datepicker.min.js"></script>
Toolbar date language is defined by angular-locale
library.
Angular separates number and datetime format rule sets into different files, each file for a particular locale. You can find a list of currently supported locales here.
<script src="https://code.angularjs.org/1.2.5/i18n/angular-locale_es-co.js"></script>
Add both mdThemeColors
and ModalDatePicker
modules as a dependency to your app module.
var app_ = angular.module('app',[
'ngMaterial', // angular material required
...
'mdThemeColors',
'ModalDatePicker'
]);
<modal-md-datepicker ng-model="selectedDate"></modal-md-datepicker>
Attribute date-format
: String
with plain javascript date format. Format input text result date.
<modal-md-datepicker ng-model="selectedDate" date-format="dd MMMM yyyy"></modal-md-datepicker>
Attribute min-date
: Date
javascript date object with min date.
<modal-md-datepicker ng-model="selectedDate" min-date="{{min_date}}"></modal-md-datepicker>
$scope.min_date = new Date();
Attribute max-date
: Date
javascript date object with max date.
<modal-md-datepicker ng-model="selectedDate" max-date="{{max_date}}"></modal-md-datepicker>
$scope.max_date = new Date();
Attribute locked
: bool
Locks input field to prevent direct write.
<modal-md-datepicker ng-model="selectedDate" locked="true"></modal-md-datepicker>
Attribute options
: json
Object with language attributes.
Allow to define default language or Strings with month and day names.
lang
: optionalAllow to define default language for month and day names in calendar.
<modal-md-datepicker ng-model="selectedDate" options="dp_options"></modal-md-datepicker>
$scope.dp_options = {
lang : 'en' // en, es, default:es
};
Allow to define default language for month and day names in calendar.
<modal-md-datepicker ng-model="selectedDate" options="dp_options"></modal-md-datepicker>
$scope.dp_options = {
sort_days : ['D', 'L', 'M', 'M', 'G', 'V', 'S'],
months : ['Gennaio', 'Febbraio', 'Marzo', 'Aprile', 'Maggio', 'Giugno', 'Luglio', 'Agosto', 'Settembre', 'Ottobre', 'Novembre', 'Dicembre'],
short_months : ['Gen', 'Feb', 'Mar', 'Apr', 'Mag', 'Giu', 'Lug', 'Ago', 'Set', 'Ott', 'Nov', 'Dic']
}
Toolbar title date language is defined by angular-locale
library. More info
title_date_format
: optionalAllow to format component title date, with plain javascript date format.
<modal-md-datepicker ng-model="selectedDate" options="format_title_options"></modal-md-datepicker>
$scope.format_title_options = {
title_date_format : 'EEEE, MMMM d'
};
Live Example: Live simple example in jsfiddle.net.
test/index.html: Test page included in the project with all options implemented.
Released under the terms of the MIT License.
FAQs
Angular Material Datepicker Component
The npm package modalmddatepicker receives a total of 0 weekly downloads. As such, modalmddatepicker popularity was classified as not popular.
We found that modalmddatepicker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.