Ngx-bootstrap: feat(datepicker): add customClass option to the new version of datepicker

Created on 15 Oct 2017  路  10Comments  路  Source: valor-software/ngx-bootstrap

Hi,
I'm using the legacy version of your datepicker and I'm heavily using the customClass attribute in order to set different classes on different dates according to the input data and I'm using it in inline mode.
I just updated to the latest version and now my legacy datepicker doesnt use momentjs locale as before and it goes back to the EN version.
I don't mind upgrading to the new version of the datepicker, but i cant seem to find a way to use customClass option over there.
Any advise will be highly appriciated.
Thanks.

comp(datepicker) easy (hours) feat-request

Most helpful comment

This seems to be the same issue I've reported here? https://github.com/valor-software/ngx-bootstrap/issues/3958
I'll soon do a pull request for that issue.

It sounds like you will need an inline version of the new datepicker as well. I've a issue and pull request for that as well: https://github.com/valor-software/ngx-bootstrap/issues/3955

All 10 comments

Hi!
You're right, customClass is not yet implemented in the new datepicker. I'm marking this as a feature request.

Is there any way that the legacy version of the DatePicker module could use the 'old' moment.js localization? It now says: 'ERROR Error: Missing locale data for the locale "hu".'

Hey, please check locales section https://valor-software.com/ngx-bootstrap/#/datepicker
It should help

It is for the BsDatepicker, not the legacy Datepicker if I鈥檓 correct. How can I achieve the same with the old version?

@fegyi001 have you tried to manually add moment.js to your project? scripts section of angular-cli.json or system.js config?

We need to expose date adapter

This seems to be the same issue I've reported here? https://github.com/valor-software/ngx-bootstrap/issues/3958
I'll soon do a pull request for that issue.

It sounds like you will need an inline version of the new datepicker as well. I've a issue and pull request for that as well: https://github.com/valor-software/ngx-bootstrap/issues/3955

any update on this ?
when will customClass option be available on the bsDatepicker ?

any update ?

@bandhavya Please see my last comment on #3958. "I will try to make a new PR with this functionality as soon as my current inline datepicker PR (#3956) is merged to development branch."

Was this page helpful?
0 / 5 - 0 ratings