Icard/angular-clarity-master(work.../node_modules/primeng/panel/panel.interface.d.ts

59 lines
1.3 KiB
TypeScript

import { TemplateRef } from '@angular/core';
/**
* Custom panel toggle event, emits before panel toggle.
* @see {@link Panel.onBeforeToggle}
* @group Events
*/
export interface PanelBeforeToggleEvent {
/**
* Browser event.
*/
originalEvent: Event;
/**
* Collapsed state of the panel.
*/
collapsed: boolean | undefined;
}
/**
* Custom panel toggle event, emits after panel toggle.
* @see {@link Panel.onAfterToggle}
* @extends {PanelBeforeToggleEvent}
* @group Events
*/
export interface PanelAfterToggleEvent extends PanelBeforeToggleEvent {
}
/**
* Defines valid templates in Panel.
* @group Templates
*/
export interface PanelTemplates {
/**
* Custom header template.
*/
header(): TemplateRef<any>;
/**
* Custom content template.
*/
content(): TemplateRef<any>;
/**
* Custom footer template.
*/
footer(): TemplateRef<any>;
/**
* Custom icons template of the panel toggler.
* @param {Object} context - header icon data.
*/
headericons(context: {
/**
* Collapsed state as a boolean
*/
$implicit: boolean;
}): TemplateRef<{
$implicit: boolean;
}>;
/**
* Custom icons template of the panel header.
*/
icons(): TemplateRef<any>;
}