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

[date-picker] add support for inline date picker #7380

Open
chvndb opened this issue May 6, 2024 · 4 comments
Open

[date-picker] add support for inline date picker #7380

chvndb opened this issue May 6, 2024 · 4 comments

Comments

@chvndb
Copy link

chvndb commented May 6, 2024

Describe your motivation

I am trying to create a form like popup that has some custom options for the user to select. One option is the need to select a date. I would like the date selection to be inline next to the other options. In Vaadin 8 there was an option to have inline date fields.

Describe the solution you'd like

Next to the current datepicker, I would like an inline datepicker that can be used directly next to other content instead of having its own popup.

Describe alternatives you've considered

There are no real alternatives, expect from trying other external components.

Additional context

No response

@chvndb chvndb changed the title [date-icker] [date-picker] add support for inline date picker May 6, 2024
@web-padawan
Copy link
Member

Please note that DatePicker has an option to disable auto-open which prevents the popup from opening on click and allows user to type a date.

@chvndb
Copy link
Author

chvndb commented May 6, 2024

Indeed, but I still want the selection widget so the user can select the date instead of having to type it.

I do not want the datepicker popup as this component is already rendered in another popup and I want to avoid have a popup inside of a popup.

@yuriy-fix
Copy link
Contributor

Dear @chvndb, would you like to have something like the example provided?

@chvndb
Copy link
Author

chvndb commented May 16, 2024

@yuriy-fix Something like that. What I actually created with Vaadin 8 was a date range picker with 2 inline date fields, see screenshot:

Screenshot 2024-05-16 at 15 11 30

It combines custom logic to have have a dopdown using bootstrap and then adds Vaadin components to it. I am migrating to Vaadin 24, but this I cannot do anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants