ng2-encrm-components
Version:
34 lines (26 loc) • 666 B
text/typescript
import { Component, OnInit, Input, HostListener } from '@angular/core';
import { Table } from '../model';
const id = 'bs4-table-details-back';
({
selector: id,
template: `
<span class="material-icons">chevron_left</span>
<strong> {{backText}} </strong>
`,
styles: [
`
:host {
cursor: pointer;
}
`
]
})
export class Bs4TableDetailsBackBtCmp implements OnInit {
('click') back() {
this.table.selectedRow = undefined;
}
() backText: string = 'Back to list';
() table: Table<any>;
constructor() { }
ngOnInit() { }
}