note.component.ts 677 B

12345678910111213141516171819202122232425
  1. import { Component, Input, ViewChild } from '@angular/core';
  2. import { NgbPopover } from '@ng-bootstrap/ng-bootstrap';
  3. import { Note } from '../../models/evt-models';
  4. import { register } from '../../services/component-register.service';
  5. @Component({
  6. selector: 'evt-note',
  7. templateUrl: './note.component.html',
  8. styleUrls: ['./note.component.scss'],
  9. })
  10. @register(Note)
  11. export class NoteComponent {
  12. @Input() data: Note;
  13. @ViewChild('popover', { static: true }) popover: NgbPopover;
  14. public pinnerStyle = {
  15. 'margin-right': '-0.65rem',
  16. 'margin-top': '-0.35rem',
  17. float: 'right',
  18. };
  19. onTriggerClicked(event: MouseEvent) {
  20. event.stopPropagation();
  21. }
  22. }