vitalets / angular-xeditable

Edit in place for AngularJS
http://vitalets.github.io/angular-xeditable
MIT License
1.91k stars 403 forks source link

Would be nice to have datepicker-template-url setting customisable as well. #728

Closed pompalini closed 6 years ago

pompalini commented 6 years ago

Datepicker popup settings has the setting datepicker-template-url: https://github.com/angular-ui/bootstrap/tree/master/src/datepickerPopup

Which allows to override the template used for the datepicker with the attribute: datepicker-template-url="angular/datepicker.html"

With this line in xeditable.js:

...
directiveName: 'editableBsdate',
...
inputDatePicker.attr('datepicker-template-url', this.attrs.eDatepickerTemplateUrl);
...

I can then make use of the attribute just like in uib-datepicker: e-datepicker-template-url="angular/datepicker.html"

Just a suggestion, Cheers