Angular-calendar: Allow to hide previous/next month days in month view

Created on 15 Sep 2017  路  2Comments  路  Source: mattlewis92/angular-calendar

I'm submitting a ...

[ ] Bug report 
[x] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit a support request here, please ask on https://stackoverflow.com/

Bug description / Feature request

It would be nice if we could hide the days of previous and next months in the month view.

Something just like that (made on Paint):

image

Extra question: is it possible to disable all those unnecessary hover effects in calendar without messing up with styles?

Additional details

Tried to do something related to this:

export class MyCalendarUtils extends CalendarUtils {
    getMonthView(args: GetMonthViewArgs): MonthView {
        args.viewStart = startOfMonth(args.viewDate);
        args.viewEnd = endOfMonth(args.viewDate);
        return getMonthView(args);
    }
}

But no luck.

Versions

Angular: 4.3.6

Calendar library: 0.21.2

Browser name and version: Mozilla Firefox 57.0a1

Most helpful comment

You can do this with CSS:

.cal-out-month .cal-cell-top {
  display: none;
}

Plunker: http://plnkr.co/edit/nEZZnr4DFyt5bnGkNPPR?p=preview

All 2 comments

You can do this with CSS:

.cal-out-month .cal-cell-top {
  display: none;
}

Plunker: http://plnkr.co/edit/nEZZnr4DFyt5bnGkNPPR?p=preview

can't we add any setting like showNonCurrentDates=false kind off

Was this page helpful?
0 / 5 - 0 ratings

Related issues

arvind-das picture arvind-das  路  3Comments

Herb-sh picture Herb-sh  路  4Comments

teodoramalec picture teodoramalec  路  4Comments

PrasannaKolla picture PrasannaKolla  路  4Comments

agilob picture agilob  路  3Comments