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

  • get value(): Date | Date[]
  • Gets the selected date(s).

    When selection is set to single, it returns a single Date object. Otherwise it is an array of Date objects.

    Returns Date | Date[]

  • set value(value: Date | Date[]): void
  • Sets the selected date(s).

    When selection is set to single, it accepts a single Date object. Otherwise it is an array of Date objects.

    Parameters

    • value: Date | Date[]

    Returns void

  • get weekStart(): number
  • Gets the start day of the week. Can return a numeric or an enum representation of the week day. If not set, defaults to the first day of the week for the application locale.

    Returns number

  • set weekStart(value: number): void
  • Sets the start day of the week. Can be assigned to a numeric value or to WEEKDAYS enum value.

    Parameters

    • value: number

    Returns void

Methods