39 lines
794 B
TypeScript
39 lines
794 B
TypeScript
import { TemplateRef } from '@angular/core';
|
|
/**
|
|
* Custom input event.
|
|
* @see {@link InputNumber.onInput}
|
|
* @group Events
|
|
*/
|
|
export interface InputNumberInputEvent {
|
|
/**
|
|
* Browser event.
|
|
*/
|
|
originalEvent: Event;
|
|
/**
|
|
* Input value.
|
|
*/
|
|
value: number | string | null;
|
|
/**
|
|
* Selected option value.
|
|
*/
|
|
formattedValue: string;
|
|
}
|
|
/**
|
|
* Defines valid templates in InputNumber.
|
|
* @group Templates
|
|
*/
|
|
export interface InputNumberTemplates {
|
|
/**
|
|
* Custom clear icon template.
|
|
*/
|
|
clearicon(): TemplateRef<any>;
|
|
/**
|
|
* Custom increment button icon template.
|
|
*/
|
|
incrementbuttonicon(): TemplateRef<any>;
|
|
/**
|
|
* Custom decrement button icon template.
|
|
*/
|
|
decrementbuttonicon(): TemplateRef<any>;
|
|
}
|