Class IgxDaysViewComponent

Hierarchy

Hierarchy

  • IgxCalendarBaseDirective
    • IgxDaysViewComponent

Implements

  • DoCheck
  • OnInit

Properties

activeViewChanged: EventEmitter<IgxCalendarView> = ...

Emits an event when the active view is changed.

<igx-calendar (activeViewChanged)="activeViewChanged($event)"></igx-calendar>
public activeViewChanged(event: CalendarView) {
let activeView = event;
}
daysNavService: IgxDaysViewNavigationService
hideOutsideDays: boolean = false

Sets/gets whether the outside dates (dates that are out of the current month) will be hidden. Default value is false.

<igx-calendar [hideOutsideDays]="true"></igx-calendar>
let hideOutsideDays = this.calendar.hideOutsideDays;
id: string = ...

Sets/gets the id of the days view. If not set, the id will have value "igx-days-view-0".

<igx-days-view id="my-days-view"></igx-days-view>
let daysViewId =  this.daysView.id;
selected: EventEmitter<Date | Date[]> = ...

Emits an event when a date is selected. Provides reference the selectedDates property.

showWeekNumbers: boolean

Show/hide week numbers

Example

<igx-days-view [showWeekNumbers]="true"></igx-days-view>
``
viewDateChanged: EventEmitter<IViewDateChangeEventArgs> = ...

Emits an event when the month in view is changed.

<igx-calendar (viewDateChanged)="viewDateChanged($event)"></igx-calendar>
public viewDateChanged(event: IViewDateChangeEventArgs) {
let viewDate = event.currentValue;
}

Accessors

Methods