Skip to content

add footer with custom dates selection #4588

@imranmajeed123

Description

@imranmajeed123

Feature request:

We are using datepicker and daterangepicker components in our application and need to have footer with custom dates ( or actions buttons ) in it. It seems like someone started on similar functionality but did not get time to finish it. We would to add this functionality.

At existing file 'bs-datepicker-view.html' and following code snippet

<div class="bs-datepicker-buttons" *ngIf="false">
  <button class="btn btn-success">Apply</button>
  <button class="btn btn-default">Cancel</button>
</div>

We would like to change it something like this

<div class="bs-datepicker-buttons" *ngIf="showCustomFooter">
 <button class="btn btn-default" *ngFor="let item of items" (click) = onItemSection(item)">{{ 
                  item.label }}</button>
</div>

This will enable us to have custom footer and implements own functionality on click of these buttons.
Please see attachment for screenshots

add_custom_date_footer
add_custom_date_footer_2

Versions of ngx-bootstrap, Angular, and Bootstrap:

ngx-bootstrap: 3.0.1

Angular: 5 and 6

Bootstrap: 4.1.1

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions