You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import {Component, Input, OnInit} from '@angular/core';
|
|
|
|
import {PopoverController} from '@ionic/angular';
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'common-option-menu',
|
|
|
|
templateUrl: './option-menu.component.html',
|
|
|
|
styleUrls: ['./option-menu.component.scss'],
|
|
|
|
})
|
|
|
|
export class OptionMenuComponent implements OnInit {
|
|
|
|
@Input() menuItems: Array<{name: string, icon: string, value: string, type?: string, title?: string}> = [];
|
|
|
|
|
|
|
|
constructor(
|
|
|
|
protected popover: PopoverController,
|
|
|
|
) { }
|
|
|
|
|
|
|
|
ngOnInit() {}
|
|
|
|
|
|
|
|
async onSelect(value) {
|
|
|
|
await this.popover.dismiss(value);
|
|
|
|
}
|
|
|
|
}
|