ngx-bootstrap icon indicating copy to clipboard operation
ngx-bootstrap copied to clipboard

datepicker dateCustomClasses changed not display

Open CR903 opened this issue 5 years ago • 5 comments

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!

CR903 avatar Aug 16 '19 04:08 CR903

@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

ludmilanesvitiy avatar Sep 16 '19 09:09 ludmilanesvitiy

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.

samheihey avatar Dec 20 '19 09:12 samheihey

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/

shrewmus avatar May 13 '20 13:05 shrewmus

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.

apotapcukv avatar Oct 20 '21 09:10 apotapcukv

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

Vignesh1326 avatar Jun 05 '22 13:06 Vignesh1326