35 lines
710 B
TypeScript
35 lines
710 B
TypeScript
|
import { TemplateRef } from '@angular/core';
|
||
|
/**
|
||
|
* Custom change event.
|
||
|
* @see {@link ToggleButton.onChange}
|
||
|
* @group Events
|
||
|
*/
|
||
|
export interface ToggleButtonChangeEvent {
|
||
|
/**
|
||
|
* Browser event.
|
||
|
*/
|
||
|
originalEvent: Event;
|
||
|
/**
|
||
|
* Boolean value to represent checked state.
|
||
|
*/
|
||
|
checked: boolean | undefined;
|
||
|
}
|
||
|
/**
|
||
|
* Defines valid templates in ToggleButton.
|
||
|
* @group Templates
|
||
|
*/
|
||
|
export interface ToggleButtonTemplates {
|
||
|
/**
|
||
|
* Custom icon template.
|
||
|
* @param {boolean} context - checked state as boolean.
|
||
|
*/
|
||
|
icon(context: {
|
||
|
/**
|
||
|
* Checked.
|
||
|
*/
|
||
|
$implicit: boolean;
|
||
|
}): TemplateRef<{
|
||
|
$implicit: boolean;
|
||
|
}>;
|
||
|
}
|