Git Product home page Git Product logo

Comments (4)

WickyNilliams avatar WickyNilliams commented on July 22, 2024 5

We were already planning on this, but it's good to have it in the issue tracker. Thanks :)

Our plan was to allow passing a basic function isDateEnabled (or maybe it should be isDateDisabled?) that accepts a date as returns a boolean.

Would this fit your needs? You can have arbitrary logic that way

from date-picker.

matthewmnewman avatar matthewmnewman commented on July 22, 2024 2

I agree that this is a must-have implementation.

Adding a function such as isDateDisabled would be ideal as it would add flexibility to use any arbitrary logic to disable dates.

// return true to disable
return (date.getDay() === 0 || date.getDay() === 7);

from date-picker.

WickyNilliams avatar WickyNilliams commented on July 22, 2024 1

@taromorimoto see my comment on the PR. I'll try to look at it later this week.

from date-picker.

taromorimoto avatar taromorimoto commented on July 22, 2024

@WickyNilliams what do you think about the suggested implementation? #52

from date-picker.

Related Issues (20)

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.