Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TruncatePipe

Truncate pipe

This is currently used with the save filter feature of the filter fields component

Hierarchy

  • TruncatePipe

Implements

  • PipeTransform

Index

Methods

Methods

transform

  • transform(value: string, limit?: number, trail?: string): string
  • Truncate given string

    Parameters

    • value: string

      The string to truncate

    • Default value limit: number = 10

      The number of characters to truncate the string at

    • Default value trail: string = "..."

      The trailing characters representing truncation

    Returns string

    The truncated string

Generated using TypeDoc