UNPKG

ngx-truncate-text

Version:

This module is for shortening the text and also includes some useful features for text manipulation like finding hashtags, highlight words with favorite color and so on after version 1.0.0.

15 lines (14 loc) 568 B
export declare class NgxTruncateService { constructor(); /** check the word cut */ checkWordCut(number: number, text: string): string; /** find hashtag from text */ findHashtag(text: any): any; /** check conditions and return text with them */ applyCondition(text: string, number: number, completeWord?: boolean, hashtag?: boolean): string; /** * رنگ کردن کلمات داده شده در متن * @param content */ highlight(content: any, highlightCondition: string, highlightQuery: any): any; }