table-cells-alike

0.1.1 • Public • Published

Highlight Alike Cells in a Table

Example. Installation:

npm install table-cells-alike

Usage

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>

/table-cells-alike/

    Package Sidebar

    Install

    npm i table-cells-alike

    Weekly Downloads

    0

    Version

    0.1.1

    License

    BSD-3-Clause

    Unpacked Size

    4.16 kB

    Total Files

    4

    Last publish

    Collaborators

    • dbezborodov