Odilbek Utamuratov
Odilbek Utamuratov

Reputation: 341

How can open date toggle in Angular npm mydatepicker?

I am using Angular npm mydatepicker(https://www.npmjs.com/package/mydatepicker). I want to open date toggle If I click input of datepicker. It only opens and closes When Datepicker button is clicked.

enter image description here

This is my code:

<my-date-picker name="mydate" [options]="myDatePickerOptions"
        (dateChanged)="onDateChanged($event)" [placeholder]="'Дата оплаты'"> 
</my-date-picker>

Can Anyone help me? Thank you.

Upvotes: 1

Views: 531

Answers (1)

Random
Random

Reputation: 3236

Refering to the doc, there is an option for this:

name: openSelectorOnInputClick
default: false
type: boolean
description: Open selector when the input field is clicked. Can be used if inline = false and editableDateField = false.

Upvotes: 1

Related Questions