-
Notifications
You must be signed in to change notification settings - Fork 222
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
feat: Add DateTimePicker component #99
Comments
TODOBugs / Features
Docs
|
Edward, do you plan to create date range picker functionality in this component, like http://www.daterangepicker.com/ Solutions that are available today, use jQuery or too dull. |
So this is something I've thought a lot about, but am not sure how to go about it. The difficulty is that I would like there to be able to be a fallback to native on mobile, which means that it needs to be represented as two separate What are your thoughts on this? |
In my project I use Bootstrap daterangepicker. In addition, that I had to use jQuery and behavior of the calendar on mobile is not implemented in the best way. The bottlenecks that you describe really exist. I'm now inclined to wait for your calendar component and just use 2 separate inputs for daterange. I think it's will be the best solution, which will solve the problem of usability and get rid of jQuery. I would like to propose you add one more feature to your todo list. For those who develop multilingual applications, the issue of localizing the calendar is very important. For example, the names of months or time units can be stored in separate properties with access to them. I think you already know all this ) For localization I can advise locales from the moment.js. What do you think about this? |
I am using the same module (Semantic-UI-Calendar) Ed mentioned and enjoy how it styled to plug right into Semantic's overall feel. It's the one UI element I still need JQuery for. Am absolutely loving the work put into ng2-semantic-ui and applaud the notion to add a date/time component! Before using Semantic-UI-Calendar, I was attempting to use HTML5 datetime-local and time inputs, however they are not cross browser and blow up on Firefox and Safari. Would be so helpful to have support for reactive and template Angular forms too. As for mobile fallback, perhaps that is up to the developer to display the appropriate input as needed? |
Hi there! Geting on the same roadblock here! Datepicker is a "must" in the corporate app that i'm working on. Also, I second @evanmosby notion, mobile apps are one step further. I do know as @yavorskiy-web said, many components: I use to like AngularStrap datepicker much better than Angular bootstrap, specially with i18n. |
Thanks all for your comments. I've been spending the last few days implementing this and I must say it's not been the easiest component to get working!! Re localization, I've created a How it will work is you add an <div class="ui left icon input">
<i class="calendar icon"></i>
<input suiDatepicker [(ngModel)]="date" pickerMode="date" [pickerFirstDayOfWeek]="3" [pickerMaxDate]="maxDate">
</div> Everything will be via a single The Full keyboard navigation is supported, including stopping once dates are out of the min/max range etc. Mobile fallback will be an optional property (defaulting to Finally, range functionality is something that I'm going to delay to a separate release - I'm hoping to get this out over the weekend, but then won't have time to work on implementing anything major for a couple of weeks. Technically though it will be able to be done manually by setting the minimum date of the 'end' picker, just won't be styled e.t.c. If you'd like to have a play, clone the repo and checkout the |
I'm testing it (using a forced version of position, But the calendar is working flawlessly. :) |
One of the major missing components in Semantic UI is a datepicker component.
There is currently a module available that adds this functionality to the library, making use of existing components (table, popup, label, icon) with limited extra CSS.
This looks to be the best candidate for porting this component, so this issue will track the progress of that.
The text was updated successfully, but these errors were encountered: