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

Clear button for Calendar #506

Closed
anikets43 opened this issue Jun 22, 2016 · 11 comments
Closed

Clear button for Calendar #506

anikets43 opened this issue Jun 22, 2016 · 11 comments
Assignees
Labels
Type: New Feature Issue contains a new feature or new component request
Milestone

Comments

@anikets43
Copy link

Hi @cagataycivici

Is there any option to validate the date format when date is entered manually. Also, is it possible to have a clear button inside the control to clear the input field or any similar behavior.

Thanks in advance.
Aniket

@cbelhaffef
Copy link

Hi,
I support the idea to have clear button, because i didn't find how i can clear value from calendar.

Thank you.

@hungerregnuh
Copy link

not the best solution, but if you get a reference to the element via ViewChild

you can set the value and use updateInputField() to get the behavior you want...

eg;

@ViewChild('p-calendar') calendar: Calendar;
this.calendar.value = null;
this.calendar.updateInputField();

@Mrtcndkn
Copy link
Contributor

Mrtcndkn commented May 4, 2017

Please try with the latest PrimeNG version and comment if the issue still persists.

@Mrtcndkn Mrtcndkn closed this as completed May 4, 2017
@jayordway
Copy link

Why was this closed, a clear button was not added to the calendar?

@Mrtcndkn
Copy link
Contributor

Sorry for the misunderstanding. I will discuss it with my colleagues and will get back to you from here about the decision.

@Mrtcndkn Mrtcndkn reopened this May 17, 2017
@cagataycivici cagataycivici changed the title Calendar Manual Entry with format validation and clear option. Clear button for Calendar May 27, 2017
@cagataycivici cagataycivici added the Type: New Feature Issue contains a new feature or new component request label May 27, 2017
@cagataycivici cagataycivici added this to the 4.1.1 milestone Jun 19, 2017
@cagataycivici
Copy link
Member

Scheduled for 4.1.1

@cagataycivici cagataycivici modified the milestone: 4.1.1 Jul 19, 2017
@jhlothamer
Copy link

This new feature does not appear on the 4.1.1 milestone list. Nor is it on 4.1.2. Can we get an update on when this feature? Thanks!

@bossqone
Copy link
Contributor

bossqone commented Aug 7, 2017

@cagataycivici any updates on this?

@cagataycivici cagataycivici self-assigned this Aug 22, 2017
@cagataycivici cagataycivici added this to the 4.1.4 milestone Aug 22, 2017
@cagataycivici
Copy link
Member

cagataycivici commented Aug 22, 2017

Set to 4.1.4.

@coppolaop
Copy link

coppolaop commented Oct 18, 2017

There is a way to call this clear function by an external button using ViewChild... There is any other form?

atretyak1985 pushed a commit to Nanitor/primeng that referenced this issue Jul 18, 2020
@saver711
Copy link

saver711 commented Sep 6, 2023

This never added
it is 16.2.0 now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: New Feature Issue contains a new feature or new component request
Projects
None yet
Development

No branches or pull requests

10 participants