File
Metadata
selector |
n52-drag-options |
templateUrl |
./drag-options.component.html |
Methods
Public
togglePanZoom
|
togglePanZoom()
|
|
|
import { Component, EventEmitter, Output } from '@angular/core';
@Component({
selector: 'n52-drag-options',
templateUrl: './drag-options.component.html'
})
export class DragOptionsComponent {
@Output()
public onTogglePanZoom: EventEmitter<void> = new EventEmitter();
public togglePanZoom() {
this.onTogglePanZoom.emit();
}
}
<div class="btn-group">
<button type="button" class="btn btn-light" (click)="togglePanZoom()">
<span class="fa fa-cog"></span>
</button>
</div>
Legend
Html element with directive