bootstrap
bootstrap copied to clipboard
Datepicker month template
I'm trying to override the month template, but with no luck. The script loads the default template whatever I try.
First I put the datepicker-template-url="js/templates/datepicker.html" attribute inside the input. That loads the template correctly. But I want to change the month.html template. So I tried with the:
<div uib-monthpicker ng-switch-when="month" tabindex="0" class="uib-monthpicker" template-url="/js/templates/month.html"></div>
inside the datepicker.html template.
I also tried to just put my month.html file in the same dir as the datepicker.html custom template. But the result was the same.
I can see the file is been loaded in the console of Firefox, but the calendar is the same (the default one) and not the one I have in the template.
My Angular version is 1.5.8 UIBS: 1.3.3 Bootstrap: 3.3.6
Thanks!
Yo tengo un problema parecido con bootstrap. En mi caso abro un modal encima de mi pagina que contiene datepickers solo a la primera funciona si cierro el modal y lo vuelvo a abrir ya no funciona :(