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

🚀 - InputDateRange months position customization #8306

Open
redisotschek opened this issue Aug 1, 2024 · 2 comments
Open

🚀 - InputDateRange months position customization #8306

redisotschek opened this issue Aug 1, 2024 · 2 comments
Labels
P3 This issue has low priority

Comments

@redisotschek
Copy link

Description

Problem description

I need my InputDateRange to be configurable so that I can choose whether I want future month to be positioned on the right from my active month OR previous month to be positioned on the left.

By the default the [defaultViewedMonth] prop controls positions of the months inside component's view, but once the month becomes active e.g. some range is picked by default, the active month stays on the left and future - on the right.

July on the left, August on the right
image

What I need is to be like this

June is on the left, selected range in July on the right
image

Proposed solution

I would propose optional prop called [showPrevMonthByDefault] to be responsible for showing prev month if there's already range picked

@mdlufy
Copy link
Collaborator

mdlufy commented Sep 6, 2024

Hi! Interesting idea, i think it maybe good to improve this feature through DI option, not input. We will consider this in the future when updating the component specification

You could do a proof-of-concept pull request : )

@waterplea
Copy link
Collaborator

We definitely do not need more flags. We need to expose the calendar for full control, that's the plan for when we will refactor controls to tui-textfield

@waterplea waterplea added P3 This issue has low priority and removed state: need triage labels Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 This issue has low priority
Development

No branches or pull requests

3 participants