projects/aoc-client/ui/form/aoc-ui-datetime-picker/aoc-ui-datetime-picker.component.ts
OnInit
AfterViewInit
OnDestroy
ControlValueAccessor
| encapsulation | ViewEncapsulation.None |
| selector | aoc-ui-datetime-picker |
| standalone | true |
| imports |
AocUiOverlayComponent
NgIf
AocUiInputTextDirective
AocUiInputGroupComponent
NgForOf
NgClass
AocUiButtonDirective
AocUiTooltipDirective
|
| templateUrl | ./aoc-ui-datetime-picker.component.html |
Properties |
|
Methods |
Inputs |
Outputs |
HostBindings |
Accessors |
constructor(ngControl: NgControl, localeId: string, aocUiDatetimePickerMode: AocUiDatetimePickerMode, aocUiDatetimePickerFormats: AocUiDatetimePickerFormats, aocUiDatetimePickerService: AocUiDatetimePickerService, aocUiLoggerService: AocUiLoggerService, l: AocUiLoggerDirective)
|
||||||||||||||||||||||||
|
Parameters :
|
| autofocus |
Type : boolean
|
| format |
Type : string
|
|
date, dateTime and time formats, following: https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table take into account: this is used to convert Date => string: https://angular.io/api/common/formatDate (formats here: https://angular.io/api/common/DatePipe#custom-format-options) this is used to convert string => Date: https://date-fns.org/v2.28.0/docs/parse you can always provide AocUiDatetimePickerFormatsToken for overriding default formats |
| inputId |
Type : string
|
| max |
Type : Date
|
| min |
Type : Date
|
| mode |
Type : AocUiDatetimePickerMode
|
Default value : 'dateTime'
|
|
mode: 'date' is calendar with year, month, day... 'dateTime' is calendar with days and hour, minute, second... 'time' is only hour, minute, second... default mode is 'dateTime'. You can use AocUiDatetimePickerModeToken to provide a default mode globally |
| name |
Type : string
|
| placeholder |
Type : string
|
| rangeLink |
Type : AocUiDatetimePickerRangeLink
|
| readonly |
Type : boolean
|
Default value : false
|
| tabindex |
Type : number
|
| onBlur |
Type : EventEmitter<any>
|
| onFocus |
Type : EventEmitter<any>
|
| onInput |
Type : EventEmitter<any>
|
| class |
Type : any
|
| class.aoc-ui-disabled |
Type : boolean
|
Default value : false
|
| registerOnChange | ||||||
registerOnChange(fn: any)
|
||||||
|
Parameters :
Returns :
void
|
| registerOnTouched | ||||||
registerOnTouched(fn: any)
|
||||||
|
Parameters :
Returns :
void
|
| setDisabledState | ||||||
setDisabledState(isDisabled: boolean)
|
||||||
|
Parameters :
Returns :
void
|
| writeValue | ||||||
writeValue(value: any)
|
||||||
|
Parameters :
Returns :
void
|
| accessibleInput |
Type : ElementRef
|
Decorators :
@ViewChild('accessibleInput')
|
| Public aocUiDatetimePickerService |
Type : AocUiDatetimePickerService
|
| Public control |
Type : AbstractControl | null
|
Default value : null
|
| disabled |
Default value : false
|
Decorators :
@HostBinding('class.aoc-ui-disabled')
|
| onChange |
Type : function
|
Default value : () => {...}
|
| onTouched |
Type : function
|
Default value : () => {...}
|
| showPanelButton |
Type : ElementRef
|
Decorators :
@ViewChild('showPanelButton')
|
| Public value |
Type : Date | null
|
Default value : new Date()
|
| controlClasses |
getcontrolClasses()
|