Ngx-bootstrap: How to show only month in bsDatepicker popup instead of date?

Created on 7 Feb 2018  路  3Comments  路  Source: valor-software/ngx-bootstrap

How to show only month in bsDatepicker popup instead of date?

comp(datepicker) duplicate

Most helpful comment

There's no need to open an issue here if you want to ask general question, use StackOverflow or Slack instead

Closed as a duplicate of #2627

All 3 comments

There's no need to open an issue here if you want to ask general question, use StackOverflow or Slack instead

Closed as a duplicate of #2627

2627 this issue is not understandable. can you please help me in above code?

On View:
bsDatepicker
(onShown)="onOpenCalendar($event)">

On Component:

onOpenCalendar(e) {
if (this.formatoMesAnio) {
e.setViewMode('month');

  e.monthSelectHandler = (event: CalendarCellViewModel): void => {
    e.value =  event.date;
    return;
  };
}

}

It麓s manually and work for me !!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tuoitrexuquang picture tuoitrexuquang  路  3Comments

tpiros picture tpiros  路  3Comments

ctrl-brk picture ctrl-brk  路  3Comments

webdev48 picture webdev48  路  3Comments

ghiscoding picture ghiscoding  路  3Comments