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

DatePicker custom footer template #1197

Closed
jehugaleahsa opened this issue Jan 9, 2017 · 9 comments
Closed

DatePicker custom footer template #1197

jehugaleahsa opened this issue Jan 9, 2017 · 9 comments

Comments

@jehugaleahsa
Copy link

Issue description:

There used to be a nice feature to turn a button group under the calendar for selecting Today, clearing the current value or closing the calendar control, which was useful when working with an input. Is there any possibility of these buttons being re-added? Is there a temporary work around to add these myself?

Version of Angular, ng-bootstrap, and Bootstrap:

Angular: 2.3.1
ng-bootstrap: 1.0.0-alpha.16
Bootstrap: 4.0.0-alpha.5

@pkozlowski-opensource
Copy link
Member

We just don't want to add a separate config option for each and every button that could be added to the footer - this would quickly "explode" public API.

What we would like to do instead is to provide people with ability to provide a template that would be inserted as a custom footer.

@jehugaleahsa
Copy link
Author

jehugaleahsa commented Mar 19, 2017 via email

@skendrot
Copy link

This issue is very specific to "Close, Clear, Today Buttons". If other issues which are more broad like "Add html content to bottom of DatePicker" are going to be closed as duplicates of this, can the title of this please be changed or close this issue and open a new issue which addresses the more broad request like #1387. Or, reopen #1387 as it is requesting a generic way to add content to the bottom of the DatePicker.

@maxokorokov maxokorokov mentioned this issue Mar 20, 2017
10 tasks
@jehugaleahsa jehugaleahsa changed the title Close, Clear, Today Buttons Add html content to bottom of DatePicker Mar 20, 2017
@jehugaleahsa jehugaleahsa changed the title Add html content to bottom of DatePicker DatePicker footer template Mar 20, 2017
@jehugaleahsa jehugaleahsa changed the title DatePicker footer template DatePicker custom footer template Mar 20, 2017
@wesleycho
Copy link
Member

Is this specific to the popup, or for the datepicker itself? Implementation-wise, would it make sense to allow users to provide a TemplateRef and bind to footer or something like that?

@skendrot
Copy link

I would want this if I used the popup, or placed the picker directly in my page

@jehugaleahsa
Copy link
Author

jehugaleahsa commented May 25, 2017 via email

@skendrot
Copy link

skendrot commented May 25, 2017

Although I suppose if I placed it on my page I would have a little more control already of what's "on the bottom". Currently I am using jquery to add the content to the bottom of the popup

@lukelafountaine
Copy link

Is there currently some sort of work around for adding html to the bottom of the calendar popup?

@martinmakesitwork
Copy link

Hey guys, I really need this feature. Is there a workaround available?

dzonatan added a commit to dzonatan/ng-bootstrap that referenced this issue Sep 21, 2018
dzonatan added a commit to dzonatan/ng-bootstrap that referenced this issue Oct 4, 2018
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