1.1.5 • Published 4 years ago

text-marker v1.1.5

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

TextMarker

Angular simple text marker with customize style

Install

$ npm i text-marker

Usage

HTML

<jk-text-marker [inputQuery]="searchtext" [styleClass]="styleclassname">
  your text here...
<jk-text-marker>
inputQuery => user search query.
styleClass => your custome styleclass name.

TS

@Component({
    selector: 'app-selector',
    template: 'app-selector.html',
    styles: ['app-selector.scss'],
    encapsulation: ViewEncapsulation.Emulated
})
export class appcomponent{}

Note: You must need to add encapsulation in component decorator. Moreinfo checkout https://blog.thoughtram.io/angular/2015/06/29/shadow-dom-strategies-in-angular2.html

SCSS

.customeStyle {
  background-color: yellow
  color: white;
  font-family: sans-serif;
  font-weight: 700
}

Test

$ ng test text-marker

Author

JayaSurya

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.0.3

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago