IgxMonthsViewComponent

new IgxMonthsViewComponent(): IgxMonthsViewComponent

Defined in projects/igniteui-angular/calendar/src/calendar/common/calendar-view.directive.ts:193

Returns IgxMonthsViewComponent

Gets/sets whether the view should be rendered according to the locale and format, if any.

formatView: boolean = true

Defined in projects/igniteui-angular/calendar/src/calendar/months-view/months-view.component.ts:110

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

<igx-months-view id="my-months-view"></igx-months-view>
let monthsViewId =  this.monthsView.id;
id: string

Defined in projects/igniteui-angular/calendar/src/calendar/months-view/months-view.component.ts:59

Inherited from: IgxCalendarViewDirective

role: string = 'grid'

Defined in projects/igniteui-angular/calendar/src/calendar/common/calendar-view.directive.ts:58

Inherited from: IgxCalendarViewDirective

Emits an event when a selection is made in the view. Provides reference the date property in the component.

selected: EventEmitter<Date>

Defined in projects/igniteui-angular/calendar/src/calendar/common/calendar-view.directive.ts:90

Inherited from: IgxCalendarViewDirective

Applies styles to the active item on view focus.

showActive: boolean = false

Defined in projects/igniteui-angular/calendar/src/calendar/common/calendar-view.directive.ts:82

Inherited from: IgxCalendarViewDirective

tabIndex: number = 0

Defined in projects/igniteui-angular/calendar/src/calendar/common/calendar-view.directive.ts:62

Inherited from: IgxCalendarViewDirective

Gets/sets the selected date of the view. By default it's the current date.

let date = this.view.date;
set date(value: Date): void

Defined in projects/igniteui-angular/calendar/src/calendar/common/calendar-view.directive.ts:158

Parameters

  • value: Date

Returns void

Inherited from: IgxCalendarViewDirective

Gets the locale of the view. Default value is "en".

let locale = this.view.locale;
get locale(): string

Defined in projects/igniteui-angular/calendar/src/calendar/common/calendar-view.directive.ts:178

Returns string

Sets the locale of the view. Expects a valid BCP 47 language tag. Default value is "en".

set locale(value: string): void

Defined in projects/igniteui-angular/calendar/src/calendar/common/calendar-view.directive.ts:189

Parameters

  • value: string

Returns void

Gets the month format option of the months view.

let monthFormat = this.monthsView.monthFormat.
get monthFormat(): any

Defined in projects/igniteui-angular/calendar/src/calendar/months-view/months-view.component.ts:89

Returns any

Sets the month format option of the months view.

<igx-months-view> [monthFormat]="short'"</igx-months-view>
set monthFormat(value: any): void

Defined in projects/igniteui-angular/calendar/src/calendar/months-view/months-view.component.ts:101

Parameters

  • value: any

Returns void

set standalone(value: boolean): void

Defined in projects/igniteui-angular/calendar/src/calendar/months-view/months-view.component.ts:78

Parameters

  • value: boolean

Returns void