Ngx-bootstrap: Disabled Dates are not working!!!

Created on 9 Jan 2018  路  11Comments  路  Source: valor-software/ngx-bootstrap

Before opening an issue, please search for duplicates (opened and closed)
https://github.com/valor-software/ngx-bootstrap/issues
There's no need to open an issue here if you want to ask general question, use StackOverflow or Slack instead

Bug description or feature request:

Looking at the source code (ngx-bootstrap/src/datepicker/datepicker-inner.component.ts) I saw that dateDisabled feature was added.
@Input() dateDisabled: { date: Date; mode: string }[];

Error:
compiler.es5.js:1694 Uncaught Error: Template parse errors: Can't bind to 'dateDisabled' since it isn't a known property of 'input'. (" #dp="bsDatepicker" bsDatepicker [ERROR ->][dateDisabled] = "dList"

To reproduces the issue:

Inside template form:
<input type="text" class="form-control" [dateDisabled]="excludeDatesArray" #dp="bsDatepicker" bsDatepicker >

where excludeDatesArray = [{ date: new Date(); mode: 'day' }]

Versions of ngx-bootstrap, Angular, and Bootstrap:

ngx-bootstrap: ^2.0.0-rc.0

Angular: 4.4.6

Bootstrap: 4.0.0-alpha.6

Build system: Angular CLI, System.js, webpack, starter seed:

Angular CLI

Most helpful comment

@valorkin Privet Dmitriy! Ne mogu ponyat' chto proishodit s dateDisabled... kosyak kakoj to. Posmotri pojalujsta.

All 11 comments

@valorkin Privet Dmitriy! Ne mogu ponyat' chto proishodit s dateDisabled... kosyak kakoj to. Posmotri pojalujsta.

I am sure I was merging this PR, but not yet published

@valorkin When you are planing to publish it? Thanks

@valorkin was it published already?

It's not working when I used dateDisabled property

Below error occurred when using input

Can't bind to 'dateDisabled' since it isn't a known property of 'input'

Is this feature in the latest version of ngx-bootstrap ?

How soon can we see this feature ?

Is this feature in progress? Need to know as I will implement and submit PR if not.

Man , I created my own datepicker . Thanks Valor Software . For not having this feature . Otherwise i would have never learnt how to create Datepicker

Any update on this feature, I want to display sold out dates in date picker and this really very important feature for that.

this feature available in v3.3.0
after post release testing it will became @latest

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tpiros picture tpiros  路  3Comments

haisaco picture haisaco  路  3Comments

pgeyman picture pgeyman  路  3Comments

PascalHonegger picture PascalHonegger  路  3Comments

KimBum picture KimBum  路  3Comments