Coder Social home page Coder Social logo

Comments (5)

AppliKey avatar AppliKey commented on June 16, 2024

Hi,

Sounds like a bug. We will be happy to see your PR.

BR,

Applikey team

from cosmocalendar.

leonardo2204 avatar leonardo2204 commented on June 16, 2024

Sure, no problem. What's the expected behavior here ? Not allow the user to select future dates after the disabled day(s) ?

from cosmocalendar.

AppliKey avatar AppliKey commented on June 16, 2024

Yes, you are 100% right!

from cosmocalendar.

leonardo2204 avatar leonardo2204 commented on June 16, 2024

Cool, see if I can drop a PR this week

from cosmocalendar.

kanujgit avatar kanujgit commented on June 16, 2024

if u want this feature just add the code in CalanderView class in getSelectedDays() functions

` /**
* Returns all selected days
*
* @return
*/
public List getSelectedDays() {
List selectedDays = new ArrayList<>();
for (Iterator monthIterator = monthAdapter.getData().iterator(); monthIterator.hasNext(); ) {
Month month = monthIterator.next();
for (Iterator dayIterator = month.getDaysWithoutTitlesAndOnlyCurrent().iterator(); dayIterator.hasNext(); ) {
Day day = dayIterator.next();
// Log.e("day",day.getCalendar().getTime()+"");
if (selectionManager.isDaySelected(day)) {
if(!day.isDisabled()){

                    selectedDays.add(day);

                }else {
                    selectedDays.clear();
                    clearSelections();
                }


            }
        }
    }
    return selectedDays;
}`

from cosmocalendar.

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.