import { Pipe , PipeTransform } from '@angular/core' ; import { Observable } from 'rxjs/Observable' ; @ Pipe ( { name : 'gtIsEditable' } ) export class GtIsEditablePipe implements PipeTransform { transform ( property , row , refreshPipe ) { if ( typeof property === 'function' ) { return property ( row ) ; } else { return false ; } } }