@kushki/ng-suka
Version:
<p align="center"> <h1 align="center">Suka Components Angular</h1> <p align="center"> An Angular implementation of the Suka Design System </p> </p>
69 lines (68 loc) • 1.7 kB
TypeScript
import { EventEmitter, ElementRef, TemplateRef } from '@angular/core';
export declare class DatePickerInput {
protected elementRef: ElementRef;
private static datePickerCount;
/**
* Select a calendar type for the `model`.
*/
type: 'simple' | 'single' | 'range';
/**
* Sets the id for the `DatePickerInput`.
*/
id: string;
/**
* Set to `true` to display a calendar icon
*/
hasIcon: boolean;
/**
* label content.
*/
label: string | TemplateRef<any>;
/**
* Sets the input's placeholder.
*/
placeholder: string;
/**
* Sets the pattern to follow.
*/
pattern: string;
/**
* Emits event notifying other classes of a value change.
*/
valueChange: EventEmitter<string>;
/**
* Set to `true` to disable the input
*/
disabled: boolean;
/**
* Set to `true` to display invalid state.
*/
invalid: boolean;
/**
* Feedback message to display when `DatepickerInput` is invalid.
*/
invalidText: string | TemplateRef<any>;
/**
* Sets a time picker icon for input
*/
timePicker: boolean;
/**
* Skeleton state.
*/
skeleton: boolean;
/**
* Sets the `DatepickerInput` value.
*/
value: string;
constructor(elementRef: ElementRef);
/**
* Sets the value, marks the input as touched and emits a value change event.
*/
onChange(event: any): void;
writeValue(value: any): void;
registerOnChange(fn: any): void;
registerOnTouched(fn: any): void;
onTouched: () => any;
propagateChange: (_: any) => void;
isTemplate(value: any): boolean;
}