table-cells-alike
v0.1.1
Published
Highlight alike table cells.
Readme
Highlight Alike Cells in a Table
Example. Installation:
npm install table-cells-alikeUsage
Import:
/**
* Highlight alike table cells.
*/
import TableCellsAlike from 'table-cells-alike';
const alike = new TableCellsAlike();
alike.attach(document);Define highlight style:
.alike {
background-color: aliceblue;
}Define which columns should be highlighed:
<thead>
<tr>
<th scope="col">Project Code</th>
<th scope="col">Project Name</th>
<th scope="col" class="highlight-alike">Account</th>
<th scope="col" class="highlight-alike">Assignee</th>
</tr>
</thead>