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

Constrain view to specified from/to years #19

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

colinf
Copy link
Contributor

@colinf colinf commented Nov 14, 2012

Relates to issue #15


// allow for reversed range with from > to
var from = this._to < this._from ? this._to : this._from;
var to = this._to < this._from ? this._from : this._to;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i dont think we need reversing really, it would be pretty weird to specify them in reverse IMO

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am using calendar in a colinf/datepicker. And for example when selecting date of birth, it is a common requirement especially when dealing with children to list years in reverse starting from current year.

BTW reversing can only be invoked if you accept my pull request (or an improved version of it!) to component/range.

Cheers, Colin

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah I see what you mean, that makes sense

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

Successfully merging this pull request may close these issues.

2 participants