46 lines
826 B
TypeScript
46 lines
826 B
TypeScript
|
import { TemplateRef } from '@angular/core';
|
||
|
/**
|
||
|
* Custom click event.
|
||
|
* @see {@link SelectButton.onOptionClick}
|
||
|
* @group Events
|
||
|
*/
|
||
|
export interface SelectButtonOptionClickEvent {
|
||
|
/**
|
||
|
* Browser event.
|
||
|
*/
|
||
|
originalEvent?: Event;
|
||
|
/**
|
||
|
* Selected option.
|
||
|
*/
|
||
|
option?: any;
|
||
|
/**
|
||
|
* Index of the selected option.
|
||
|
*/
|
||
|
index?: number;
|
||
|
}
|
||
|
/**
|
||
|
* Custom change event.
|
||
|
* @see {@link SelectButton.onChange}
|
||
|
* @group Events
|
||
|
*/
|
||
|
export interface SelectButtonChangeEvent {
|
||
|
/**
|
||
|
* Browser event.
|
||
|
*/
|
||
|
originalEvent?: Event;
|
||
|
/**
|
||
|
* Selected option.
|
||
|
*/
|
||
|
value?: any;
|
||
|
}
|
||
|
/**
|
||
|
* Defines valid templates in SelectButton.
|
||
|
* @group Templates
|
||
|
*/
|
||
|
export interface SelectButtonTemplates {
|
||
|
/**
|
||
|
* Custom item template.
|
||
|
*/
|
||
|
item(): TemplateRef<any>;
|
||
|
}
|