valor-software / ngx-bootstrap

Fast and reliable Bootstrap widgets in Angular (supports Ivy engine)
https://valor-software.com/ngx-bootstrap
MIT License
5.53k stars 1.69k forks source link

datepicker dateCustomClasses changed not display #5362

Open CR903 opened 5 years ago

CR903 commented 5 years ago

bs-datepicker-inline and minModel

ngx-bootstrap: 5.1.1

Angular: 7.2.14

Bootstrap: V4

First of all, my English is poor!

when I change ‘dateCustomClasses’ value, datepicker did not display the mark. then hover the calendar,that display.

  1. init: image

  2. then change dateCustomClasses value: image

  3. when hover: image

how I change dateCustomClasses value , that will display right now. please help, thanks!

ludmilanesvitiy commented 5 years ago

@CR903 Hi! I can't reproduce it in the Demo app, so could you, please, create a reproduction via Stackblitz? Peek 2019-09-16 12-57

samheihey commented 4 years ago

I have the same issue as well. I was having an observable pattern for the classes to be subscribed, however, the style classes only show up only after I hovered the datepicker.

To deal with this, I made sure the dateCustomClasses data was already prepared and subscribed before constructing the datepicker.

shrewmus commented 4 years ago

Hi. Notice here. That arrays actions have some tricks with change detection for bound properties. Refer this: https://chrislo.ca/angular-2345-change-detection-on-data-bound-array-pushunshift-popshift-or-splice/

apotapcukv commented 3 years ago

Hi, @CR903! We can’t reproduce the issue. If you still can, please do it at https://stackblitz.com/edit/angular-ivy-de1elj?file=tsconfig.json/ and share with us, or please add a recorded video.

Vignesh1326 commented 2 years ago

How can I send inline styles rather than in classes for bs datepicker inline. Because there is a need for my use case where I dynamically get data from API and according to that I need to give background color dynamically