2017-07-04 10:58:20 -04:00
|
|
|
/* tslint:disable */
|
2017-02-22 18:13:21 +00:00
|
|
|
// Exact copy of contact/highlight.directive except for color and message
|
|
|
|
import { Directive, ElementRef } from '@angular/core';
|
|
|
|
|
|
|
|
@Directive({ selector: '[highlight], input' })
|
2017-07-04 10:58:20 -04:00
|
|
|
/** Highlight the attached element or an InputElement in gray */
|
2017-02-22 18:13:21 +00:00
|
|
|
export class HighlightDirective {
|
|
|
|
constructor(el: ElementRef) {
|
2017-07-04 10:58:20 -04:00
|
|
|
el.nativeElement.style.backgroundColor = '#efeeed';
|
2017-02-22 18:13:21 +00:00
|
|
|
console.log(
|
|
|
|
`* Shared highlight called for ${el.nativeElement.tagName}`);
|
|
|
|
}
|
|
|
|
}
|