Giter Site home page Giter Site logo

creaturesinunitards / mithril-datepicker Goto Github PK

View Code? Open in Web Editor NEW
24.0 24.0 9.0 70 KB

Pick a date! But only if you're using Mithril. (component for Mithril.js ^v1.0)

License: MIT License

JavaScript 64.83% CSS 35.17%
component datepicker javascript mithril mithril-components mithril-datepicker widget

mithril-datepicker's People

Contributors

acxgit avatar creaturesinunitards avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

mithril-datepicker's Issues

Selected date cannot be updated during redraw

If you update the date during a redraw the date doesn't get updated but stays the original one. The view should check for a updated vnode.attrs.date and then update the vnode.state.date property.

Localization

Since you opened an issue about accessibility, I'll log the next one about localization. I want LUNES!!!

Date Formatter for rendered date

After I pick a date, I would like two things:

  1. It should be automatically formatted like it is but with commas
  2. I should be able to pick some formatting options (of course allowing European formatting, for example, would mean changing up the picker as well, so I know it's more work than it sounds)

Sass variables should be namespaced

Your Sass variables aren't namespaced, which makes integration a little harder into existing projects. I personally added a mdp- prefix to the variables for my use case, but you shouldn't feel constrained by that.

API for disabling past dates and intervals user can select

there would be nice to restrict the user input by

  • restricting past dates
  • allowing time intervals
m(DatePicker, {
       data: ...,
       allowPastDates: true, // defaults to now
       interval: {
          start: "08/07/17", // defaults to now
          end:  "12/12/17"
       }
       onchange: ...
})

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.