Hello,
There is a way to make the dropdown for months and years as we have in Outsystems UI Web?
https://outsystemsui.outsystems.com/WebStyleGuidePreview/DatePicker.aspx
Thanks, Paulo Torres
Hi @Paulo Torres
If the library doesn't have an option for that, there's no way at this point to achieve that and, from a product standpoint, based on feedback from UX teams that is not the way we want to go. Sorry for not being able to unblock you on this, but unfortunately to have that you need to create your own date picker.
Cheers,GM
Hello @Paulo Torres Of course, another way to create a date or years dropdown is by using JavaScript, but in JavaScript you will also have to enter data for the dropdown, which will take a lot of work, if you are working on low code, then you should use OutSystem UI drop-down.
Thank you
If you see what I sent is not a really dropdown. I know I can ccreate a custom DatePicker but I want to know if the Outsystems have any workaround for that!
Thanks
Hello @Paulo Torres
Did you get the chance to look into Flatpickr documentation?If so, can you show which properties you want to manipulate?Remember that these components are based on that library so if it doesn't offer that it's not possible to do it on the component (out of the box we don't have a way even that from a UX point of view is not the best apporach).
Hi Paulo,
Looking at the flatpickr feature request here:https://github.com/flatpickr/flatpickr/issues/269
it seems they have built it so that you can also select months also, instead of days (which is what I think the widget MonthPicker from OutsystemsUI does and is based off).
However for selecting Years, I don't think they have it (at first sight...)
Cheers,
Paulo
Hey @Paulo Torres now I understood what you want 😊 I liked your question, we should work on it, maybe we can get some better output for future users.
Hi @Paulo Ritto,
Thanks for your answer. Yes, you are right. Only exists month select plugin.
Hi @Gonçalo Martins ,
Thanks for your answer.
Looking for the documentation it seems the library doesn't have what I'm looking for and it seems we can use month select plugin in MonthPicker, there is no option to have this month selector in DatePicker. Or do you know someway to do it?
Hi @Gonçalo Martins,
Yes, I understand and you are fully right. Thanks for your quick feedback, as usual :)
Thanks, PT