CalendarComponent
Component Metadata
Section titled “Component Metadata”Selector: yuv-calendar
Standalone: Yes
Implements: OnInit
Inputs
Section titled “Inputs”Type: Date | undefined
Default Value: new Date()
hour12
Section titled “hour12”Type: boolean
Default Value: false
locale
Section titled “locale”Type: string | undefined
maxDate
Section titled “maxDate”Type: Date
Allow only date inputs before this date
minDate
Section titled “minDate”Type: Date
Allow only date inputs after this date
onlyFutureDates
Section titled “onlyFutureDates”Type: any
Default Value: false
Allow only date inputs that are after today
withTime
Section titled “withTime”Type: boolean
Default Value: false
Outputs
Section titled “Outputs”Type: Date | undefined
Properties
Section titled “Properties”_offsetYear
Section titled “_offsetYear”Type: number
Type: unknown
Default Value: viewChild.required<ElementRef>('cal')
calendarDays
Section titled “calendarDays”Type: CalendarItem[]
Default Value: []
dayPeriodLabels
Section titled “dayPeriodLabels”Type: DayPeriodLabels
Default Value: DEFAULT_DAY_PERIOD_LABELS
daysOfWeek
Section titled “daysOfWeek”Type: string[]
Default Value: []
focusedIndex
Section titled “focusedIndex”Type: number
Default Value: 0
maxYear
Section titled “maxYear”Type: number
Default Value: 9999
minYear
Section titled “minYear”Type: unknown
Default Value: -9999
Type: number
months
Section titled “months”Type: literal type[]
Default Value: []
selectedIndex
Section titled “selectedIndex”Type: unknown
Default Value: -1
Type: TimeValue
Type: number
Methods
Section titled “Methods”onTimeChange
Section titled “onTimeChange”onTimeChange(e: TimeValue): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| e | TimeValue |
onYearInputKeydown
Section titled “onYearInputKeydown”onYearInputKeydown(e: KeyboardEvent): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| e | KeyboardEvent |
select
Section titled “select”select(d: Date | string | number, setFocusPosition?: boolean, silent?: boolean): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| d | Date | string | number | |
| setFocusPosition | boolean | |
| silent | boolean |
selectByIndex
Section titled “selectByIndex”selectByIndex(i: number, setFocusPosition?: boolean): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| i | number | |
| setFocusPosition | boolean |
selectMonthOfYear
Section titled “selectMonthOfYear”selectMonthOfYear(month: number, year?: number, skipImmediateSelect?: boolean): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| month | number | |
| year | number | |
| skipImmediateSelect | boolean |
selectYear
Section titled “selectYear”selectYear(year: number, skipImmediateSelect?: boolean): voidArguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
| year | number | |
| skipImmediateSelect | boolean |