Skip to content

[APP] Host Listener for internal links #1

@musicEnfanthen

Description

@musicEnfanthen
import { ..., HostListener } from '@angular/core';

// TODO: maybe implement features from events by hostlistener ...

 @HostListener('click', ['$event'])

 onClick(event) {
  if (event.target.parentElement.classList[0] === 'fuuws') {
      // HERE THINGS CAN BE ADDED §
      console.log('opening detail dialog with ' + event.target.firstChild.data );
      console.log( event.target );
      this.openDetailsDialog(event.target.firstChild.data);
    } // else {console.log('actions on cells disabled or no action defined')}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions