bootstrap-ui-datetime-picker icon indicating copy to clipboard operation
bootstrap-ui-datetime-picker copied to clipboard

Popup template

Open joaocmfcm opened this issue 8 years ago • 4 comments

Hey, Is there a good way of setting a custom template for the date-picker popup? I just wanted to change the classes of the buttons. I can achieve that on the original datepicker directive by having the config:

.config(function (uibDatepickerPopupConfig) {       
    uibDatepickerPopupConfig.datepickerPopupTemplateUrl =  'views/_datepickerTemplate.html'
})

Thanks

joaocmfcm avatar Jul 20 '16 15:07 joaocmfcm

If u just want to change the buttons styles, u can achieve this by using css classes...

Gillardo avatar Jul 20 '16 17:07 Gillardo

I can try to use a selector to change the classes to btn-primary but that doesn't solve if I want to change the displacement of the buttons.

joaocmfcm avatar Jul 20 '16 18:07 joaocmfcm

A custom template popup it would be great! Otherwise, just a option to choose the type (class) of the buttons would be nice too. I just want to use all buttons with btn-default class. Currently, there's a way to define visibility and text, you could just add another option to customize the css class.

robsonrosa avatar Oct 12 '16 13:10 robsonrosa

Button classes can now be changed

Gillardo avatar Jan 19 '17 09:01 Gillardo