UNPKG

lml-main

Version:

This is now a mono repository published into many standalone packages.

29 lines 1.67 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const React = require("react"); const cosmoui_1 = require("cosmoui"); const job_label_table_row_1 = require("./job-label-table-row"); class JobLabelTable extends cosmoui_1.StylableComponent { constructor() { super(...arguments); this.headerStyle = { verticalAlign: 'middle' }; this.renderHeader = () => (React.createElement("thead", null, React.createElement("tr", null, React.createElement("th", { style: this.headerStyle }, "FREQ"), React.createElement("th", { style: this.headerStyle }, "REGION"), React.createElement("th", { style: this.headerStyle }, "DESCRIPTION"), React.createElement("th", { style: this.headerStyle }, "DATE CREATED"), React.createElement("th", { style: this.headerStyle }, "SMART AVAILABLE"), React.createElement("th", { style: this.headerStyle }, "AUTO ENABLED"), React.createElement("th", { style: this.headerStyle }, "CONSOLIDATION ENABLED"), React.createElement("th", { style: this.headerStyle })))); this.renderBody = () => (React.createElement("tbody", null, this.props.labels.map(jobLabel => React.createElement(job_label_table_row_1.JobLabelTableRow, { key: jobLabel.label, jobLabel: jobLabel })))); } render() { return (React.createElement(cosmoui_1.Table, { hover: true, condensed: true, id: 'job-label-table' }, this.renderHeader(), this.renderBody())); } } exports.JobLabelTable = JobLabelTable; //# sourceMappingURL=job-label-table.js.map