Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-Close the Picker on selection of day? #7

Open
matt-supramed opened this issue Jul 6, 2017 · 4 comments
Open

Auto-Close the Picker on selection of day? #7

matt-supramed opened this issue Jul 6, 2017 · 4 comments

Comments

@matt-supramed
Copy link

Is there a way to auto-close the picker once a specific day has been selected?

@asvetlana
Copy link

Made this in my fork (branch name 'close-by-selection')

@hindusta
Copy link

hindusta commented Jan 4, 2018

<date-picker [showClearButton]="false" ngModel name="date" [closeBySelection] = "false">
Can you please help me ? I am getting error of

ERROR Error: Uncaught (in promise): Error: Template parse errors:
Can't bind to 'closeBySelection' since it isn't a known property of 'date-picker'.

  1. If 'date-picker' is an Angular component and it has 'closeBySelection' input, then verify that it is part of this module.
  2. If 'date-picker' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
  3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("d-datepicker> -->
    <date-picker [showClearButton]="false" ngModel name="date" [ERROR ->][closeBySelection] = "false">

@CodeHuntstarts
Copy link

CodeHuntstarts commented Mar 13, 2018

<date-picker [closeBySelection]="true" mode="date">
not works for me.

@keerthivasan12
Copy link

@CodeHuntstarts can you help me

<date-picker [closeBySelection]="true" [showClearButton]="false" [formControl]="searchFilterFrom.controls['start_date']" mode="datetime">

ERROR Error: Uncaught (in promise): Error: Template parse errors:
Can't bind to 'closeBySelection' since it isn't a known property of 'date-picker'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants