primeng
Version:
PrimeNG is an open source UI library for Angular featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeB
52 lines (51 loc) • 1.07 kB
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;
}>;
/**
* Custom content template.
* @param {Object} context - content data.
*/
content(context: {
/**
* Checked.
*/
$implicit: boolean;
/**
* Label of the component.
*/
label: string;
}): TemplateRef<{
$implicit: boolean | null;
label: string;
}>;
}