src/views/tableview/table-view-table-header.js
import { customElement, LitElement, property, html, css } from 'lit-element';
import styles from '../data/data-view.styles';
import sharedStyles from '../data/data-view-shared.styles';
import '../utility/formatted-segment';
@customElement('table-view-table-header')
class TableViewTableHeader extends LitElement {
@property({ type: String }) fileName;
static get styles() {
return [
css`
.table-header-container {
display: flex;
flex: 1;
}
.segment-header {
background-color: var(--color-light-grey);
margin: 6px 0 6px 6px;
padding: 12px;
flex: 2;
}
.segment-header.start-segment {
flex: 1;
margin: 6px 6px 6px 0;
}
`,
styles,
sharedStyles,
];
}
render() {
return html`
<div class="table-header-container">
<div class="start-segment segment-header material-card">
<formatted-filename .filename="${this.fileName}"></formatted-filename>
</div>
<div class="segment-header material-card">
Parallel segments and probabilities
</div>
</div>
`;
}
}
export default TableViewTableHeader;