Coder Social home page Coder Social logo

rachelmrgls / app-datepicker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from motss/app-datepicker

0.0 1.0 0.0 7.8 MB

A datepicker element built from scratch with Polymer

Home Page: https://motss.github.io/app-datepicker/components/app-datepicker/

License: MIT License

HTML 99.46% Shell 0.54%

app-datepicker's Introduction

GitHub version Bower version Build Status

app-datepicker (formerly jv-datepicker)

img-app-datepicker

See the component page for more information.

An custom Polymer element built from scratch to provide a datepicker based on Google's Material Design that is more compelling and rich with features.

Update (v2.11.0)

  • Pleased to announce that app-datepicker is now compatible with both Polymer 1.x and Polymer 2.0 stable.
  • Now Intl polyfill will not load (previously it does) if the browser does not natively support it and it is recommended for users to load the polyfill at the top-level document by some feature detections.
  • alwaysResetSelectedDateOnDialogClose - proposed by #74 to allow datepicker to reset the selected date to today's date once the datepicker closes and the demo has this included as well.
  • As of v2.11, all dates will no longer include users' local system's timezone offset and all will be default to GMT/ UTC timezone. For more info, please see #89.

Example:

<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 bower. bower install --save app-datepicker

  2. Load the dependencies and the Intl polyfill if needed.

    Load Intl Polyfill for unsupported browsers via feature detection,

    if (window.Intl) {
      var intlPolyfill = document.createElement('script');
      intlPolyfill.src = 'path_to_intl_polyfill';
      document.head.appendChild(intlPolyfill);
    }

    For app-datepicker,

    <link rel="import" href="path-to-bower-components/app-datepicker/app-datepicker.html">

    For app-datepicker-dialog,

    <link rel="import" href="path-to-bower-components/app-datepicker/app-datepicker-dialog.html">
  3. Markup with <app-datepicker></app-datepicker> or <app-datepicker-dialog></app-datepicker-dialog>.

  4. Done.

Browser Support

app-datepicker and app-datepicker-dialog:

Microsoft Windows x64

Internet Explorer Microsoft Edge Mozilla Firefox Mozilla Firefox Developer Edition Google Chrome Google Chrome Canary Opera Opera Developer Edition
11 12+ latest latest latest

Linux x64

Mozilla Firefox Mozilla Firefox Developer Edition Google Chrome Google Chrome Canary Opera Opera Developer Edition
latest latest latest

Mac OS X

Mozilla Firefox Mozilla Firefox Developer Edition Google Chrome Google Chrome Canary Opera Opera Developer Edition Safari Safari Technology Preview
latest latest latest 7+

Android 4.4.4 and above

Mozilla Firefox Google Chrome Google Chrome Dev Opera Android WebView
latest latest latest latest

iOS 7.1 and above

Mozilla Firefox Google Chrome Opera Safari for iOS
latest latest latest 7+

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

Internet Explorer Microsoft Edge Mozilla Firefox Mozilla Firefox Developer Edition Google Chrome Google Chrome Canary Opera Opera Developer Edition Safari Safari Technology Preview
11 12+ latest latest latest 10+ **

** Intl Polyfill for unsupported browsers

Throughput

Throughput Graph

License

MIT License © Rong Sen Ng

app-datepicker's People

Watchers

Rachel Margulies avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.