I want to customize the ngx-bootstrap datepicker popup and want to add button in the calendar which has some link.
I have tried adding buttons in datepicker template. It is working in other pages but am not able see added custom content in the datepicker template inside ngx-bootstrap modal popup.
I got the reference to add custom template from here.
Here I am adding the running stackblitz code for custom datepicker inside and outside the modal popup.
<div class="modal-header">
<h4 class="modal-title pull-left">Modal with Datepicker</h4>
<button type="button" class="close pull-right" aria-label="Close" (click)="modalRef.hide()">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="test-box">
<h4>Datepicker</h4>
<div class="form-group">
<div class="div-container">
<input type="text"
#dp="bsDatepicker"
class="form-control"
autocomplete="off"
bsDatepicker
[(bsValue)]="myDateValue"
[bsConfig]="datePickerConfig">
<div class="custom-content position-absolute" *ngIf="dp.isOpen">
<a (click)="customAction()">{{myDateValue | date:'short'}}</a>
</div>
</div>
</div>
</div>
</div>