Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide public setMinTime() and setMaxTime() methods #10

Open
nickdaugherty opened this issue May 15, 2012 · 0 comments
Open

Provide public setMinTime() and setMaxTime() methods #10

nickdaugherty opened this issue May 15, 2012 · 0 comments

Comments

@nickdaugherty
Copy link

After instantiation, it's no longer possible to set the min/max times (for example, when using 2 DateSliders as a range picker). The DateSlider class provides a setTime() method, it should also provide setMinTime() and setMaxTime() to allow changing those values on the fly. I've added those methods to my own code and they seem to work fine:

public void setMinTime(Calendar c) {
    minTime = c;

    if(c != null){
        mContainer.setMinTime(c);
    }
}

public void setMaxTime(Calendar c) {
    maxTime = c;

    if(c != null){
       mContainer.setMaxTime(c);
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant