aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-tables/table-expander-icon.component.ts
blob: 3756b475a4b82dc8c6ad33a4f6ae324bcf3a360d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
import { Component, Input } from '@angular/core'

@Component({
  selector: 'my-table-expander-icon',
  template: `
<span class="expander">
    <i [ngClass]="expanded ? 'glyphicon glyphicon-menu-down' : 'glyphicon glyphicon-menu-right'"></i>
</span>`
})
export class TableExpanderIconComponent {
  @Input() expanded: boolean
}