UNPKG

primeng

Version:

[![npm version](https://badge.fury.io/js/primeng.svg)](https://badge.fury.io/js/primeng) [![npm downloads](https://img.shields.io/npm/dm/primeng.svg)](https://www.npmjs.com/package/primeng) [![Actions CI](https://github.com/primefaces/primeng/workflows/No

65 lines (64 loc) 1.26 kB
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>; }