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

Expose Date picker component to be used standalone #1001

Closed
tratteo opened this issue Sep 22, 2024 · 3 comments
Closed

Expose Date picker component to be used standalone #1001

tratteo opened this issue Sep 22, 2024 · 3 comments
Labels
wontfix This will not be worked on

Comments

@tratteo
Copy link

tratteo commented Sep 22, 2024

Is your feature request related to a problem? Please describe.
I want to create a responsive DatePicker. Currently the component uses a floating dialog to display the calendar. I want to open a bottom sheet when the screen is small (mobile). Currently I do not think I have access to components used to create the calendar in the popup dialog.

Describe the solution you'd like
I would like to have the possibility to access the Calendar component so that I can decide whether to display it in the default popup or in a custom modal sheet. As an example, this package exposes the VDatePicker component that has no popup and is just a component that renders a calendar and allows selection.

Additional context
To sum up, currently the DatePicker component provided takes care of opening the default popup to allow selection, but we do not have access to the component rendered inside this popup to use it standalone.

@tratteo tratteo added awaiting triage The issue is not reviewed by the maintainers enhancement New feature or request labels Sep 22, 2024
@gmenunes
Copy link

gmenunes commented Nov 1, 2024

I have a similar problem. I want to use the same Month and Year pickers but make slight changes using slots.

Currently, there is no way to do this. If I use the month-year slot I have to rewrite all logic from scratch, which makes no sense.

@Jasenkoo
Copy link
Contributor

Jasenkoo commented Nov 2, 2024

@tratteo The item you are looking for is inline prop

@gmenunes There are different slots for overlay, overlay items, or just month or year buttons, no need to override the whole block

@Jasenkoo Jasenkoo closed this as completed Nov 2, 2024
@Jasenkoo Jasenkoo added wontfix This will not be worked on and removed enhancement New feature or request awaiting triage The issue is not reviewed by the maintainers labels Nov 2, 2024
@gmenunes
Copy link

gmenunes commented Nov 4, 2024

@gmenunes There are different slots for overlay, overlay items, or just month or year buttons, no need to override the whole block

You're right, I didn't understand it in this way when I read the docs for the first time.
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants