Class IgxYearsViewComponent

Hierarchy

  • IgxYearsViewComponent

Implements

  • ControlValueAccessor

Constructors

Properties

Accessors

Constructors

constructor

Properties

date

date: Date = new Date()

Gets/sets the selected date of the years view. By default it is the current date.

<igx-years-view [date]="myDate"></igx-years-view>
let date =  this.yearsView.date;
memberof

IgxYearsViewComponent

el

el: ElementRef

formatView

formatView: boolean

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

id

id: string = `igx-years-view-${NEXT_ID++}`

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

<igx-years-view id = "my-years-view"></igx-years-view>
let yearsViewId =  this.yearsView.id;
memberof

IgxCalendarComponent

onSelection

onSelection: EventEmitter<Date> = new EventEmitter<Date>()

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

<igx-years-view (onSelection)="onSelection($event)"></igx-years-view>
memberof

IgxYearsViewComponent

Accessors

locale

  • get locale(): string
  • set locale(value: string): void

yearFormat

  • get yearFormat(): string
  • set yearFormat(value: string): void