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

@edirect/app-datepicker

Package Overview
Dependencies
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@edirect/app-datepicker

A datepicker element based on Google's Material Design built from scratch with Polymer

  • 3.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
decreased by-76.47%
Maintainers
2
Weekly downloads
 
Created
Source

app-datepicker

Material Design datepicker built with Polymer 3


GitHub version Build Status Published on Vaadin Directory Stars on vaadin.com/directory

img-app-datepicker

See the component page for more information.

Update (v3.0.0) - Breaking changes

  • Upgraded to Polymer 3 stable.

  • Moved to NPM.

  • Recommended to include the Intl polyfill and web-animations-js polyfill at the top document level.

    <app-datepicker></app-datepicker>
    <app-datepicker view="horizontal"></app-datepicker>
    <app-datepicker theme="dark-theme"></app-datepicker>
    <app-datepicker-dialog modal></app-datepicker-dialog>
    <app-datepicker-dialog with-backdrop></app-datepicker-dialog>
    <app-datepicker-dialog></app-datepicker-dialog>
    

app-datepicker provides a regular datepicker element. While app-datepicker-dialog has a app-datepicker being wrapped inside a dialog.

## ( Coming soon!) Generating your own boilerplate code of the compounds At the end of the demo, there is a section where user can play around with to generate your own boilerplate code with the attributes provided.

Styling

Now with mixins, head over to the component page for more details.

Getting Started

  1. Install with npm.

    $ npm i app-datepicker
    
  2. (Optional) Load the dependencies and the Intl and web-animations-js polyfills on unsupported browsers:

    <script src="https://cdnjs.cloudflare.com/ajax/libs/web-animations/2.3.1/web-animations-next.min.js"></script>
    <script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=Intl.~locale"></script>
    
  3. Load element in HTML or JS.

    <!-- In HTML, load with script[type=module], either `app-datepicker` -->
    <script type="module" href="/node_modules/app-datepicker/app-datepicker.js"></script>
    
    <!-- or, `app-datepicker-dialog` -->
    <!-- <script type="module" src="/node_modules/app-datepicker/app-datepicker-dialog.js"></script> -->
    
    // Alternatively, loading element in JavaScript.
    ...
    import 'app-datepicker/app-datepicker.js';
    ...
    

Browser Support

app-datepicker and app-datepicker-dialog:

Same as that of Polymer 3.

Intl.DateTimeFormat

ECMAScript Internationalization API for locale. For more details please visit Can I use... Intl?:

Internet ExplorerMicrosoft EdgeMozilla Firefox Mozilla Firefox Developer EditionGoogle Chrome Google Chrome CanaryOpera Opera Developer EditionSafari Safari Technology Preview
1112+latestlatestlatest10+ **

** Intl Polyfill for unsupported browsers

Throughput

Throughput Graph

License

MIT License © Rong Sen Ng

Keywords

FAQs

Package last updated on 30 Mar 2020

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