35 lines
740 B
TypeScript
35 lines
740 B
TypeScript
|
import { TemplateRef } from '@angular/core';
|
||
|
/**
|
||
|
* Custom panel resize start event.
|
||
|
* @see {@link Splitter.onResizeStart}
|
||
|
* @group Events
|
||
|
*/
|
||
|
export interface SplitterResizeStartEvent {
|
||
|
/**
|
||
|
* Browser event.
|
||
|
*/
|
||
|
originalEvent: TouchEvent | MouseEvent;
|
||
|
/**
|
||
|
* Collapsed state of the panel.
|
||
|
*/
|
||
|
sizes: number[];
|
||
|
}
|
||
|
/**
|
||
|
* Custom panel resize end event.
|
||
|
* @see {@link Splitter.onResizeEnd}
|
||
|
* @extends {SplitterResizeStartEvent}
|
||
|
* @group Events
|
||
|
*/
|
||
|
export interface SplitterResizeEndEvent extends SplitterResizeStartEvent {
|
||
|
}
|
||
|
/**
|
||
|
* Defines valid templates in Panel.
|
||
|
* @group Templates
|
||
|
*/
|
||
|
export interface SplitterTemplates {
|
||
|
/**
|
||
|
* Custom panel template.
|
||
|
*/
|
||
|
panel(): TemplateRef<any>;
|
||
|
}
|