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
65 lines (64 loc) • 1.26 kB
TypeScript
import { TemplateRef } from '@angular/core';
/**
* Custom text change event.
* @see {@link Editor.onTextChange}
* @group Events
*/
export interface EditorTextChangeEvent {
/**
* Current value as html.
*/
htmlValue: string;
/**
* Current value as text.
*/
textValue: string;
/**
* Representation of the change.
*/
delta: string;
/**
* Source of change. Will be either 'user' or 'api'.
*/
source: string;
}
/**
* Custom selection change event.
* @see {@link Editor.onSelectionChange}
* @group Events
*/
export interface EditorSelectionChangeEvent {
/**
* Representation of the selection boundaries.
*/
range: string;
/**
* Representation of the previous selection boundaries.
*/
oldRange: string;
/**
* Source of change. Will be either 'user' or 'api'.
*/
source: string;
}
/**
* Custom load event.
* @see {@link Editor.onInit}
* @group Events
*/
export interface EditorInitEvent {
/**
* Text editor instance.
*/
editor: any;
}
/**
* Defines valid templates in Editor.
* @group Templates
*/
export interface EditorTemplates {
/**
* Custom header template.
*/
header(): TemplateRef<any>;
}