5 ms·
One of the things that I always find missing in these libraries/collections is a date/time picker. I know these are available via many separate projects, but it
by harel 6y ago
One of the things that I always find missing in these libraries/collections is a date/time picker. I know these are available via many separate projects, but it's nice if one picks a collection like that, that all inputs are homogeneous.
- devongovett 6y agoOur date picker is in progress right now actually. Should be available relatively soon. Date pickers are one of the most complicated components, especially due to internationalization/accessibility requirements.
- harel 6y agoI appreciate their complexity and applaud your efforts. Good stuff.
- de6u99er 6y agoCan confirm. Date pickers and tables with pagination and sort/pagination functionality are hard. Had to input my birthday recently and the web-form only allowed input via the date picker which started with the current date. The year had small minus and plus buttons next to it. This did not only make me feel old while I was clicking through the years, but it also cost me valuable time. About tables, most developers forget that a paginated table needs to do search sorting on the data provider side. Sorting and searching through the visible 20 entries isn't helpful at all IMO.
- ggregoire 6y agoWill it have moment.js as dependency like react-dates? Do you also plan to make a DateRangePicker and a TimePicker?
- devongovett 6y agoNo, moment is not a dependency. We're using the native Intl.DateTimeFormat APIs that are built into browsers now. This makes sure we support internationalization properly, but without the giant locale data needing to be downloaded. And yes, we have a DateRangePicker and TimePicker as well.
- ponker 6y agoWho is "our"?
- still_grokking 6y agoThat's only an "issue" of all that "modern" stuff. Many, many years ago I've used Dojo[1] and it's component lib Dijit. It had all that complex widgets in the toolbox. With all the "advantage" stuff like ARIA and internalization. Or you could use Ext, if you could pay it. But than all this "modern 'component' stuff" came form nowhere and you've been back to stone age, where you didn't have even the most basic components (like dialogs or menus) OOTB for many years to come. [1] https://dojotoolkit.org/ https://dojotoolkit.org/ PS: Did I actually mention that Dojo managed to deliver updates for over 10 years without breaking the API? ;-) PPS: They invented AMD by the way (the by far most sane JS module system). PPPS: Require.js was more or less an (extended) rewrite of the ansync Dojo loader. (I think even the same people involved). And this stuff exited at a time people where just discovering jQuery, even before the jQ "hype".
- freehunter 6y agoThat’s how I feel about all of this Javascript stuff after coming from Rails. You mean I have to do [insert basically anything] all on my own, from scratch? But Rails gave me all of that out of the box!
- pjmlp 6y agoWhich is why I am glad that in what concerns Web projects, I keep getting those where SSR does most of the work, with selected pieces of JS for the frontend.
- cookiecaper 6y agoIt's not just Rails, it's basically any semi-modern development toolkit. JavaScript's minimal standard library is one of its biggest flaws and one of the richest sources of exploitation, as exemplified by the left-pad fiasco. It's not even about the standard lib as much as the culture. Ignoring the fact that it would take years for the changes to become widespread enough to be usable, "pull in 400MB of dependencies for everything, including dependencies of dependencies" is practically a cultural value in the JS scene. It demonstrates why JS is voluntarily practiced primarily by the inexperienced all these years after it established itself as the universal platform.
- freehunter 6y agoFinding a datepicker is the worst part of any project for me and if a design library doesn’t include one I’m going to find another library. I’ve actually had app ideas that I’ve thrown away because they relied too heavily on datepickers and working with them is one of the worst experiences.
- dmix 6y agoant-design is the most complete component collection I've come across. I'm in the process of swapping out element-ui for ant-design-vue in a serious project. Very mature and very active, while being tree-shaking friendly and lets you select just the components/css you need. Used on Baidu and other major sites. https://ant.design/components/date-picker/ https://ant.design/components/date-picker/