Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SearchHighlightPipe

Search highlight pipe

This is currently used with the type ahead feature of the filter fields component

Usage:

// Individual module import
import { SearchHighlightPipeModule } from 'patternfly-ng/pipe';
// Or
import { SearchHighlightPipeModule } from 'patternfly-ng';

@NgModule({ imports: [SearchHighlightPipeModule,...] }) export class AppModule(){}

Hierarchy

  • SearchHighlightPipe

Implements

  • PipeTransform

Index

Methods

Methods

transform

  • transform(val: string, search: string): any
  • Transform the substring matching the given search

    Parameters

    • val: string

      The string to highlight

    • search: string

      The text to search for

    Returns any

    The given string with highlighted text

Generated using TypeDoc