-
Notifications
You must be signed in to change notification settings - Fork 41
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
Demo is not working on ui-bootstrap-tpls-1.1.0 #39
Comments
Hi I had the same issue, I solved it by substituting the templateUrl in the decorator . I replaced the new class selector optimization within the template. Solution:
|
Hi, Thank you for solution. This will be merged in master branch or we have to add it to our own lib? |
I'm not sure of the best way to add it as part of the module. It should be easy enough to replace it globally for all uib-datepickers, but I'm not sure if that's what everyone wants. PRs with suggestions are welcome. |
Actually there is another issue as well. This only solves the problem with daily view. Since monthly and yearly have different template, this doesn't work there. And just replacing their template also doesn't help. If I find a solution I'll update this thread. |
Why would the month and year views need updating? Only individual dates get On Thu, Feb 18, 2016 at 3:23 AM mehranshakeri notifications@github.com
|
Exactly. e.g. When min-mode is month, I want to select Jan and Feb, and see them highlighted |
I'm not sure how you could do that without affecting with the individual On Thu, Feb 18, 2016 at 9:48 AM mehranshakeri notifications@github.com
|
I also don't know what is the better way to fix this, but I don't feel good copying gm.datepickerMultiSelect.js and modifying it. As bootstrap datepicker is already designed to support a different template. That's what I've done:
That way you solve the issue just using html. No js change. |
Hello! @brenovieira , thanks for solution. When I use ng-model-options="{timezone: 'utc'}", color of selected days does not changes! How can i fix it? Thx |
Hi, @mislamov. This is probably due to the fact that the directive is expecting selected dates to be midnight local time and not midnight UTC. I'll open a new issue for this. |
Hi, thanks for your precious work! But, it doesn't work at all with the Bootstrap UI >= 1.0.0. Here is the forked Plunker with only the bootstrap version changed to 1.0.0: While you mention that it should work. Am I doing it wrong? |
@mtuzinskiy, The selectedDates array should fill with your selections, but it won't look like they're selected on the calendar. You have to give a custom template for the daypicker directive since the default one doesn't use ngClass as of v1.0.0, which is what my directive relies on for styling selected dates. Please refer to @brenovieira's comment for a solution. |
Oh right, it works great, thank you! |
|
The UI isn't the same as on ui-bootstrap-tpls-1.1.0.
The text was updated successfully, but these errors were encountered: