UNPKG

truncate-element

Version:

With this package, you can make any changes you want on the text. Don't worry about the framework. It is a custom element and is compatible with all JavaScript frameworks.

37 lines (36 loc) 841 B
export interface HighlighQuery { name?: string; color?: string; } export interface IdentifyLink { enabled: boolean; hasQueryString?: boolean; title?: string; class?: string; style?: string; domain?: Array<string>; protocol?: Array<string>; target?: string; } export interface Config { more: string; less: string; number: number; completeWord: boolean; hashtag?: boolean; highlightCondition: string; hasLiteral: boolean; highlightList: Array<HighlighQuery | string>; mention?: boolean; identifyLink?: IdentifyLink; } export interface MyHighLightQuery { name: string; color: string; tag: string; index: number; existInAnotherQuery: boolean; content: string; parent: string; parentTag: string; }