IgxYearsViewComponent

new IgxYearsViewComponent(): IgxYearsViewComponent

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

Returns IgxYearsViewComponent

Inherited from: IgxCalendarViewDirective

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

formatView: boolean

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

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

set standalone(value: boolean): void

Defined in projects/igniteui-angular/calendar/src/calendar/years-view/years-view.component.ts:58

Parameters

  • value: boolean

Returns void

Gets the year format option of the years view.

let yearFormat = this.yearsView.yearFormat.
get yearFormat(): any

Defined in projects/igniteui-angular/calendar/src/calendar/years-view/years-view.component.ts:86

Returns any

Sets the year format option of the years view.

<igx-years-view [yearFormat]="numeric"></igx-years-view>
set yearFormat(value: any): void

Defined in projects/igniteui-angular/calendar/src/calendar/years-view/years-view.component.ts:98

Parameters

  • value: any

Returns void