import { Directive , ElementRef , EventEmitter , Input , Output } from '@angular/core' ; import { Platform } from '../../platform/platform' ; import { Side , isRightSide } from '../../util/util' ; import { ItemSliding } from './item-sliding' ; name description usage @ Directive ( { selector : 'ion-item-options' , } ) export class ItemOptions { input @ Input ( ) side : Side ; output @ Output ( ) ionSwipe : EventEmitter < ItemSliding > = new EventEmitter < ItemSliding > ( ) ; constructor ( private _elementRef , private _plt ) { } hidden isRightSide ( ) { return isRightSide ( this . side , this . _plt . isRTL , true ) ; } hidden width ( ) { return this . _elementRef . nativeElement . offsetWidth ; } }