Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
angular-datepicker-oldschool
Advanced tools
Readme
angular-pure-datepicker - is kind of old-school date select, but with modern look and feel and abilities.
| [Demos and documentation] 1 |
tldr;
Not stable yet; Use it only in test or development cases.
Download it
bower install angular-pure-datepicker --save
npm install ??? --save
(not ready yet)
(look for other package managers)
or download from git: releases
Add to html
<link href="bower_components/angular-pure-datepicker/dist/angular-pure-datepicker.css">
<script src="bower_components/angular-pure-datepicker/dist/angular-pure-datepicker.min.js"></script>
Add as angilarjs project's dependency:
angular.module('demo', [
'angular-pd'
])
Add a directive to html
ng-model
- Object
, can be empty
or null
, but required
.
The result of select would placed here. Also if ng-model is object with datetime
field
(should contain number), it's will be applied as initial date value.
apd-start
- number
, optional
.
Datetime of a lower date limit (model's values lower then limit wouldn't be applied).
apd-end
- number
, optional
.
Datetime of a upper date limit (model's values upper then limit wouldn't be applied).
apd-day-id
- string
, optional
.
Setter of custom id for the days select element.
apd-month-id
- string
, optional
.
Setter of custom id for the month select element.
apd-year-id
- string
, optional
.
Setter of custom id for the years select element.
apd-day-classes
- string
, optional
.
Setter of custom classes for the days select element.
apd-month-classes
- string
, optional
.
Setter of custom classes for the month select element.
apd-year-classes
- string
, optional
.
Setter of custom classes for the years select element.
There only localization what may be needed is for names of days of week.
(here should be instructions when it's done)
It's should be easy. Most of business logic placed in ./src/classes
dir, and angular_directive.ts
only works with
DOM. You may easily replace it with any other view implementation.
github.com/se-panfilov/angular-pure-datepicker/issues
All contributions are welcome. Please add a Pull-Request. If you not sure about TypeScript, you ay wrote your PR in JS (it's will be easy to port after all).
You may found few hand-test cases in dev-server branch. It will be better if you test how it works on it.
(how it resolve conflicts of limits and datetime, only datetime has mean, what data provided in model, etc...)
(should write basics of apd)
MIT: go to text
FAQs
Angular pure datepicker
The npm package angular-datepicker-oldschool receives a total of 2 weekly downloads. As such, angular-datepicker-oldschool popularity was classified as not popular.
We found that angular-datepicker-oldschool 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.