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.
frontend/src/app/components/editor/node-picker/node-picker.component.ts

31 lines
664 B

import { Component, OnInit } from '@angular/core';
import {PopoverController} from '@ionic/angular';
@Component({
selector: 'editor-node-picker',
templateUrl: './node-picker.component.html',
styleUrls: ['./node-picker.component.scss'],
})
export class NodePickerComponent implements OnInit {
public typeIcons = {
branch: 'fa fa-folder',
node: 'fa fa-quote-left',
norm: 'fa fa-quote-left',
page: 'fa fa-sticky-note',
db: 'fa fa-database',
code: 'fa fa-code',
};
constructor(
private popover: PopoverController,
) { }
ngOnInit() {}
onSelect(value: string) {
this.popover.dismiss(value).then(() => {});
}
}