Class IgxMonthsViewComponent

Hierarchy

  • IgxMonthsViewComponent

Implements

  • ControlValueAccessor

Constructors

Properties

Accessors

Constructors

constructor

Properties

date

date: Date = new Date()

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

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

IgxMonthsViewComponent

el

el: ElementRef

formatView

formatView: boolean = true

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

id

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

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;
memberof

IgxMonthsViewComponent

onSelection

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

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

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

IgxMonthsViewComponent

Accessors

locale

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

monthFormat

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