Sidebar chart display

This commit is contained in:
Geomitron
2020-02-07 21:40:35 -05:00
parent a682fa52c6
commit 749a132b4a
15 changed files with 200 additions and 33 deletions

View File

@@ -1,4 +1,4 @@
import { Component, AfterViewInit, Input } from '@angular/core'
import { Component, AfterViewInit, Input, Output, EventEmitter } from '@angular/core'
import { SongResult } from 'src/electron/shared/interfaces/search.interface'
@Component({
@@ -9,9 +9,15 @@ import { SongResult } from 'src/electron/shared/interfaces/search.interface'
export class ResultTableComponent implements AfterViewInit {
@Input() results: SongResult[]
@Output() rowClicked = new EventEmitter<SongResult>()
constructor() { }
ngAfterViewInit() {
$('.ui.checkbox').checkbox()
}
onRowClicked(result: SongResult) {
this.rowClicked.emit(result)
}
}