HexagonJS
Edit Page
Sticky Table Headers
A module for giving tables sticky headers that stay in place when scrolling on the table.
Examples
Head Text 1 Head Text 2 Head Text 3 Head Text 4 Head Text 5 Head Text 6 Head Text 7 Head Text 8 Head Text 9 Head Text 10 Head Text 11 Head Text 12 Head Text 13 Head Text 14 Head Text 15 Head Text 16 Head Text 17 Head Text 18 Head Text 19 Head Text 20
Cell Text 1 Cell Text 2 Cell Text 3 Cell Text 4 Cell Text 5 Cell Text 6 Cell Text 7 Cell Text 8 Cell Text 9 Cell Text 10 Cell Text 11 Cell Text 12 Cell Text 13 Cell Text 14 Cell Text 15 Cell Text 16 Cell Text 17 Cell Text 18 Cell Text 19 Cell Text 20
Cell Text 1 Cell Text 2 Cell Text 3 Cell Text 4 Cell Text 5 Cell Text 6 Cell Text 7 Cell Text 8 Cell Text 9 Cell Text 10 Cell Text 11 Cell Text 12 Cell Text 13 Cell Text 14 Cell Text 15 Cell Text 16 Cell Text 17 Cell Text 18 Cell Text 19 Cell Text 20
Cell Text 1 Cell Text 2 Cell Text 3 Cell Text 4 Cell Text 5 Cell Text 6 Cell Text 7 Cell Text 8 Cell Text 9 Cell Text 10 Cell Text 11 Cell Text 12 Cell Text 13 Cell Text 14 Cell Text 15 Cell Text 16 Cell Text 17 Cell Text 18 Cell Text 19 Cell Text 20
Cell Text 1 Cell Text 2 Cell Text 3 Cell Text 4 Cell Text 5 Cell Text 6 Cell Text 7 Cell Text 8 Cell Text 9 Cell Text 10 Cell Text 11 Cell Text 12 Cell Text 13 Cell Text 14 Cell Text 15 Cell Text 16 Cell Text 17 Cell Text 18 Cell Text 19 Cell Text 20
Cell Text 1 Cell Text 2 Cell Text 3 Cell Text 4 Cell Text 5 Cell Text 6 Cell Text 7 Cell Text 8 Cell Text 9 Cell Text 10 Cell Text 11 Cell Text 12 Cell Text 13 Cell Text 14 Cell Text 15 Cell Text 16 Cell Text 17 Cell Text 18 Cell Text 19 Cell Text 20
Cell Text 1 Cell Text 2 Cell Text 3 Cell Text 4 Cell Text 5 Cell Text 6 Cell Text 7 Cell Text 8 Cell Text 9 Cell Text 10 Cell Text 11 Cell Text 12 Cell Text 13 Cell Text 14 Cell Text 15 Cell Text 16 Cell Text 17 Cell Text 18 Cell Text 19 Cell Text 20
Cell Text 1 Cell Text 2 Cell Text 3 Cell Text 4 Cell Text 5 Cell Text 6 Cell Text 7 Cell Text 8 Cell Text 9 Cell Text 10 Cell Text 11 Cell Text 12 Cell Text 13 Cell Text 14 Cell Text 15 Cell Text 16 Cell Text 17 Cell Text 18 Cell Text 19 Cell Text 20
Cell Text 1 Cell Text 2 Cell Text 3 Cell Text 4 Cell Text 5 Cell Text 6 Cell Text 7 Cell Text 8 Cell Text 9 Cell Text 10 Cell Text 11 Cell Text 12 Cell Text 13 Cell Text 14 Cell Text 15 Cell Text 16 Cell Text 17 Cell Text 18 Cell Text 19 Cell Text 20
Cell Text 1 Cell Text 2 Cell Text 3 Cell Text 4 Cell Text 5 Cell Text 6 Cell Text 7 Cell Text 8 Cell Text 9 Cell Text 10 Cell Text 11 Cell Text 12 Cell Text 13 Cell Text 14 Cell Text 15 Cell Text 16 Cell Text 17 Cell Text 18 Cell Text 19 Cell Text 20
Cell Text 1 Cell Text 2 Cell Text 3 Cell Text 4 Cell Text 5 Cell Text 6 Cell Text 7 Cell Text 8 Cell Text 9 Cell Text 10 Cell Text 11 Cell Text 12 Cell Text 13 Cell Text 14 Cell Text 15 Cell Text 16 Cell Text 17 Cell Text 18 Cell Text 19 Cell Text 20
Cell Text 1 Cell Text 2 Cell Text 3 Cell Text 4 Cell Text 5 Cell Text 6 Cell Text 7 Cell Text 8 Cell Text 9 Cell Text 10 Cell Text 11 Cell Text 12 Cell Text 13 Cell Text 14 Cell Text 15 Cell Text 16 Cell Text 17 Cell Text 18 Cell Text 19 Cell Text 20
Cell Text 1 Cell Text 2 Cell Text 3 Cell Text 4 Cell Text 5 Cell Text 6 Cell Text 7 Cell Text 8 Cell Text 9 Cell Text 10 Cell Text 11 Cell Text 12 Cell Text 13 Cell Text 14 Cell Text 15 Cell Text 16 Cell Text 17 Cell Text 18 Cell Text 19 Cell Text 20
Cell Text 1 Cell Text 2 Cell Text 3 Cell Text 4 Cell Text 5 Cell Text 6 Cell Text 7 Cell Text 8 Cell Text 9 Cell Text 10 Cell Text 11 Cell Text 12 Cell Text 13 Cell Text 14 Cell Text 15 Cell Text 16 Cell Text 17 Cell Text 18 Cell Text 19 Cell Text 20
Cell Text 1 Cell Text 2 Cell Text 3 Cell Text 4 Cell Text 5 Cell Text 6 Cell Text 7 Cell Text 8 Cell Text 9 Cell Text 10 Cell Text 11 Cell Text 12 Cell Text 13 Cell Text 14 Cell Text 15 Cell Text 16 Cell Text 17 Cell Text 18 Cell Text 19 Cell Text 20
Cell Text 1 Cell Text 2 Cell Text 3 Cell Text 4 Cell Text 5 Cell Text 6 Cell Text 7 Cell Text 8 Cell Text 9 Cell Text 10 Cell Text 11 Cell Text 12 Cell Text 13 Cell Text 14 Cell Text 15 Cell Text 16 Cell Text 17 Cell Text 18 Cell Text 19 Cell Text 20
Cell Text 1 Cell Text 2 Cell Text 3 Cell Text 4 Cell Text 5 Cell Text 6 Cell Text 7 Cell Text 8 Cell Text 9 Cell Text 10 Cell Text 11 Cell Text 12 Cell Text 13 Cell Text 14 Cell Text 15 Cell Text 16 Cell Text 17 Cell Text 18 Cell Text 19 Cell Text 20
Cell Text 1 Cell Text 2 Cell Text 3 Cell Text 4 Cell Text 5 Cell Text 6 Cell Text 7 Cell Text 8 Cell Text 9 Cell Text 10 Cell Text 11 Cell Text 12 Cell Text 13 Cell Text 14 Cell Text 15 Cell Text 16 Cell Text 17 Cell Text 18 Cell Text 19 Cell Text 20
Cell Text 1 Cell Text 2 Cell Text 3 Cell Text 4 Cell Text 5 Cell Text 6 Cell Text 7 Cell Text 8 Cell Text 9 Cell Text 10 Cell Text 11 Cell Text 12 Cell Text 13 Cell Text 14 Cell Text 15 Cell Text 16 Cell Text 17 Cell Text 18 Cell Text 19 Cell Text 20
Cell Text 1 Cell Text 2 Cell Text 3 Cell Text 4 Cell Text 5 Cell Text 6 Cell Text 7 Cell Text 8 Cell Text 9 Cell Text 10 Cell Text 11 Cell Text 12 Cell Text 13 Cell Text 14 Cell Text 15 Cell Text 16 Cell Text 17 Cell Text 18 Cell Text 19 Cell Text 20
Cell Text 1 Cell Text 2 Cell Text 3 Cell Text 4 Cell Text 5 Cell Text 6 Cell Text 7 Cell Text 8 Cell Text 9 Cell Text 10 Cell Text 11 Cell Text 12 Cell Text 13 Cell Text 14 Cell Text 15 Cell Text 16 Cell Text 17 Cell Text 18 Cell Text 19 Cell Text 20

HTML

<div id="table" class="example-table">
  <table class="hx-table">
    <thead>
      <tr>
        <th>Head Text 1</th>
        <th>Head Text 2</th>
        <th>Head Text 3</th>
        <th>Head Text 4</th>
        <th>Head Text 5</th>
        <th>Head Text 6</th>
        <th>Head Text 7</th>
        <th>Head Text 8</th>
        <th>Head Text 9</th>
        <th>Head Text 10</th>
        <th>Head Text 11</th>
        <th>Head Text 12</th>
        <th>Head Text 13</th>
        <th>Head Text 14</th>
        <th>Head Text 15</th>
        <th>Head Text 16</th>
        <th>Head Text 17</th>
        <th>Head Text 18</th>
        <th>Head Text 19</th>
        <th>Head Text 20</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>Cell Text 1</td>
        <td>Cell Text 2</td>
        <td>Cell Text 3</td>
        <td>Cell Text 4</td>
        <td>Cell Text 5</td>
        <td>Cell Text 6</td>
        <td>Cell Text 7</td>
        <td>Cell Text 8</td>
        <td>Cell Text 9</td>
        <td>Cell Text 10</td>
        <td>Cell Text 11</td>
        <td>Cell Text 12</td>
        <td>Cell Text 13</td>
        <td>Cell Text 14</td>
        <td>Cell Text 15</td>
        <td>Cell Text 16</td>
        <td>Cell Text 17</td>
        <td>Cell Text 18</td>
        <td>Cell Text 19</td>
        <td>Cell Text 20</td>
      </tr>
      <tr>
        <td>Cell Text 1</td>
        <td>Cell Text 2</td>
        <td>Cell Text 3</td>
        <td>Cell Text 4</td>
        <td>Cell Text 5</td>
        <td>Cell Text 6</td>
        <td>Cell Text 7</td>
        <td>Cell Text 8</td>
        <td>Cell Text 9</td>
        <td>Cell Text 10</td>
        <td>Cell Text 11</td>
        <td>Cell Text 12</td>
        <td>Cell Text 13</td>
        <td>Cell Text 14</td>
        <td>Cell Text 15</td>
        <td>Cell Text 16</td>
        <td>Cell Text 17</td>
        <td>Cell Text 18</td>
        <td>Cell Text 19</td>
        <td>Cell Text 20</td>
      </tr>
      <tr>
        <td>Cell Text 1</td>
        <td>Cell Text 2</td>
        <td>Cell Text 3</td>
        <td>Cell Text 4</td>
        <td>Cell Text 5</td>
        <td>Cell Text 6</td>
        <td>Cell Text 7</td>
        <td>Cell Text 8</td>
        <td>Cell Text 9</td>
        <td>Cell Text 10</td>
        <td>Cell Text 11</td>
        <td>Cell Text 12</td>
        <td>Cell Text 13</td>
        <td>Cell Text 14</td>
        <td>Cell Text 15</td>
        <td>Cell Text 16</td>
        <td>Cell Text 17</td>
        <td>Cell Text 18</td>
        <td>Cell Text 19</td>
        <td>Cell Text 20</td>
      </tr>
      <tr>
        <td>Cell Text 1</td>
        <td>Cell Text 2</td>
        <td>Cell Text 3</td>
        <td>Cell Text 4</td>
        <td>Cell Text 5</td>
        <td>Cell Text 6</td>
        <td>Cell Text 7</td>
        <td>Cell Text 8</td>
        <td>Cell Text 9</td>
        <td>Cell Text 10</td>
        <td>Cell Text 11</td>
        <td>Cell Text 12</td>
        <td>Cell Text 13</td>
        <td>Cell Text 14</td>
        <td>Cell Text 15</td>
        <td>Cell Text 16</td>
        <td>Cell Text 17</td>
        <td>Cell Text 18</td>
        <td>Cell Text 19</td>
        <td>Cell Text 20</td>
      </tr>
      <tr>
        <td>Cell Text 1</td>
        <td>Cell Text 2</td>
        <td>Cell Text 3</td>
        <td>Cell Text 4</td>
        <td>Cell Text 5</td>
        <td>Cell Text 6</td>
        <td>Cell Text 7</td>
        <td>Cell Text 8</td>
        <td>Cell Text 9</td>
        <td>Cell Text 10</td>
        <td>Cell Text 11</td>
        <td>Cell Text 12</td>
        <td>Cell Text 13</td>
        <td>Cell Text 14</td>
        <td>Cell Text 15</td>
        <td>Cell Text 16</td>
        <td>Cell Text 17</td>
        <td>Cell Text 18</td>
        <td>Cell Text 19</td>
        <td>Cell Text 20</td>
      </tr>
      <tr>
        <td>Cell Text 1</td>
        <td>Cell Text 2</td>
        <td>Cell Text 3</td>
        <td>Cell Text 4</td>
        <td>Cell Text 5</td>
        <td>Cell Text 6</td>
        <td>Cell Text 7</td>
        <td>Cell Text 8</td>
        <td>Cell Text 9</td>
        <td>Cell Text 10</td>
        <td>Cell Text 11</td>
        <td>Cell Text 12</td>
        <td>Cell Text 13</td>
        <td>Cell Text 14</td>
        <td>Cell Text 15</td>
        <td>Cell Text 16</td>
        <td>Cell Text 17</td>
        <td>Cell Text 18</td>
        <td>Cell Text 19</td>
        <td>Cell Text 20</td>
      </tr>
      <tr>
        <td>Cell Text 1</td>
        <td>Cell Text 2</td>
        <td>Cell Text 3</td>
        <td>Cell Text 4</td>
        <td>Cell Text 5</td>
        <td>Cell Text 6</td>
        <td>Cell Text 7</td>
        <td>Cell Text 8</td>
        <td>Cell Text 9</td>
        <td>Cell Text 10</td>
        <td>Cell Text 11</td>
        <td>Cell Text 12</td>
        <td>Cell Text 13</td>
        <td>Cell Text 14</td>
        <td>Cell Text 15</td>
        <td>Cell Text 16</td>
        <td>Cell Text 17</td>
        <td>Cell Text 18</td>
        <td>Cell Text 19</td>
        <td>Cell Text 20</td>
      </tr>
      <tr>
        <td>Cell Text 1</td>
        <td>Cell Text 2</td>
        <td>Cell Text 3</td>
        <td>Cell Text 4</td>
        <td>Cell Text 5</td>
        <td>Cell Text 6</td>
        <td>Cell Text 7</td>
        <td>Cell Text 8</td>
        <td>Cell Text 9</td>
        <td>Cell Text 10</td>
        <td>Cell Text 11</td>
        <td>Cell Text 12</td>
        <td>Cell Text 13</td>
        <td>Cell Text 14</td>
        <td>Cell Text 15</td>
        <td>Cell Text 16</td>
        <td>Cell Text 17</td>
        <td>Cell Text 18</td>
        <td>Cell Text 19</td>
        <td>Cell Text 20</td>
      </tr>
      <tr>
        <td>Cell Text 1</td>
        <td>Cell Text 2</td>
        <td>Cell Text 3</td>
        <td>Cell Text 4</td>
        <td>Cell Text 5</td>
        <td>Cell Text 6</td>
        <td>Cell Text 7</td>
        <td>Cell Text 8</td>
        <td>Cell Text 9</td>
        <td>Cell Text 10</td>
        <td>Cell Text 11</td>
        <td>Cell Text 12</td>
        <td>Cell Text 13</td>
        <td>Cell Text 14</td>
        <td>Cell Text 15</td>
        <td>Cell Text 16</td>
        <td>Cell Text 17</td>
        <td>Cell Text 18</td>
        <td>Cell Text 19</td>
        <td>Cell Text 20</td>
      </tr>
      <tr>
        <td>Cell Text 1</td>
        <td>Cell Text 2</td>
        <td>Cell Text 3</td>
        <td>Cell Text 4</td>
        <td>Cell Text 5</td>
        <td>Cell Text 6</td>
        <td>Cell Text 7</td>
        <td>Cell Text 8</td>
        <td>Cell Text 9</td>
        <td>Cell Text 10</td>
        <td>Cell Text 11</td>
        <td>Cell Text 12</td>
        <td>Cell Text 13</td>
        <td>Cell Text 14</td>
        <td>Cell Text 15</td>
        <td>Cell Text 16</td>
        <td>Cell Text 17</td>
        <td>Cell Text 18</td>
        <td>Cell Text 19</td>
        <td>Cell Text 20</td>
      </tr>
      <tr>
        <td>Cell Text 1</td>
        <td>Cell Text 2</td>
        <td>Cell Text 3</td>
        <td>Cell Text 4</td>
        <td>Cell Text 5</td>
        <td>Cell Text 6</td>
        <td>Cell Text 7</td>
        <td>Cell Text 8</td>
        <td>Cell Text 9</td>
        <td>Cell Text 10</td>
        <td>Cell Text 11</td>
        <td>Cell Text 12</td>
        <td>Cell Text 13</td>
        <td>Cell Text 14</td>
        <td>Cell Text 15</td>
        <td>Cell Text 16</td>
        <td>Cell Text 17</td>
        <td>Cell Text 18</td>
        <td>Cell Text 19</td>
        <td>Cell Text 20</td>
      </tr>
      <tr>
        <td>Cell Text 1</td>
        <td>Cell Text 2</td>
        <td>Cell Text 3</td>
        <td>Cell Text 4</td>
        <td>Cell Text 5</td>
        <td>Cell Text 6</td>
        <td>Cell Text 7</td>
        <td>Cell Text 8</td>
        <td>Cell Text 9</td>
        <td>Cell Text 10</td>
        <td>Cell Text 11</td>
        <td>Cell Text 12</td>
        <td>Cell Text 13</td>
        <td>Cell Text 14</td>
        <td>Cell Text 15</td>
        <td>Cell Text 16</td>
        <td>Cell Text 17</td>
        <td>Cell Text 18</td>
        <td>Cell Text 19</td>
        <td>Cell Text 20</td>
      </tr>
      <tr>
        <td>Cell Text 1</td>
        <td>Cell Text 2</td>
        <td>Cell Text 3</td>
        <td>Cell Text 4</td>
        <td>Cell Text 5</td>
        <td>Cell Text 6</td>
        <td>Cell Text 7</td>
        <td>Cell Text 8</td>
        <td>Cell Text 9</td>
        <td>Cell Text 10</td>
        <td>Cell Text 11</td>
        <td>Cell Text 12</td>
        <td>Cell Text 13</td>
        <td>Cell Text 14</td>
        <td>Cell Text 15</td>
        <td>Cell Text 16</td>
        <td>Cell Text 17</td>
        <td>Cell Text 18</td>
        <td>Cell Text 19</td>
        <td>Cell Text 20</td>
      </tr>
      <tr>
        <td>Cell Text 1</td>
        <td>Cell Text 2</td>
        <td>Cell Text 3</td>
        <td>Cell Text 4</td>
        <td>Cell Text 5</td>
        <td>Cell Text 6</td>
        <td>Cell Text 7</td>
        <td>Cell Text 8</td>
        <td>Cell Text 9</td>
        <td>Cell Text 10</td>
        <td>Cell Text 11</td>
        <td>Cell Text 12</td>
        <td>Cell Text 13</td>
        <td>Cell Text 14</td>
        <td>Cell Text 15</td>
        <td>Cell Text 16</td>
        <td>Cell Text 17</td>
        <td>Cell Text 18</td>
        <td>Cell Text 19</td>
        <td>Cell Text 20</td>
      </tr>
      <tr>
        <td>Cell Text 1</td>
        <td>Cell Text 2</td>
        <td>Cell Text 3</td>
        <td>Cell Text 4</td>
        <td>Cell Text 5</td>
        <td>Cell Text 6</td>
        <td>Cell Text 7</td>
        <td>Cell Text 8</td>
        <td>Cell Text 9</td>
        <td>Cell Text 10</td>
        <td>Cell Text 11</td>
        <td>Cell Text 12</td>
        <td>Cell Text 13</td>
        <td>Cell Text 14</td>
        <td>Cell Text 15</td>
        <td>Cell Text 16</td>
        <td>Cell Text 17</td>
        <td>Cell Text 18</td>
        <td>Cell Text 19</td>
        <td>Cell Text 20</td>
      </tr>
      <tr>
        <td>Cell Text 1</td>
        <td>Cell Text 2</td>
        <td>Cell Text 3</td>
        <td>Cell Text 4</td>
        <td>Cell Text 5</td>
        <td>Cell Text 6</td>
        <td>Cell Text 7</td>
        <td>Cell Text 8</td>
        <td>Cell Text 9</td>
        <td>Cell Text 10</td>
        <td>Cell Text 11</td>
        <td>Cell Text 12</td>
        <td>Cell Text 13</td>
        <td>Cell Text 14</td>
        <td>Cell Text 15</td>
        <td>Cell Text 16</td>
        <td>Cell Text 17</td>
        <td>Cell Text 18</td>
        <td>Cell Text 19</td>
        <td>Cell Text 20</td>
      </tr>
      <tr>
        <td>Cell Text 1</td>
        <td>Cell Text 2</td>
        <td>Cell Text 3</td>
        <td>Cell Text 4</td>
        <td>Cell Text 5</td>
        <td>Cell Text 6</td>
        <td>Cell Text 7</td>
        <td>Cell Text 8</td>
        <td>Cell Text 9</td>
        <td>Cell Text 10</td>
        <td>Cell Text 11</td>
        <td>Cell Text 12</td>
        <td>Cell Text 13</td>
        <td>Cell Text 14</td>
        <td>Cell Text 15</td>
        <td>Cell Text 16</td>
        <td>Cell Text 17</td>
        <td>Cell Text 18</td>
        <td>Cell Text 19</td>
        <td>Cell Text 20</td>
      </tr>
      <tr>
        <td>Cell Text 1</td>
        <td>Cell Text 2</td>
        <td>Cell Text 3</td>
        <td>Cell Text 4</td>
        <td>Cell Text 5</td>
        <td>Cell Text 6</td>
        <td>Cell Text 7</td>
        <td>Cell Text 8</td>
        <td>Cell Text 9</td>
        <td>Cell Text 10</td>
        <td>Cell Text 11</td>
        <td>Cell Text 12</td>
        <td>Cell Text 13</td>
        <td>Cell Text 14</td>
        <td>Cell Text 15</td>
        <td>Cell Text 16</td>
        <td>Cell Text 17</td>
        <td>Cell Text 18</td>
        <td>Cell Text 19</td>
        <td>Cell Text 20</td>
      </tr>
      <tr>
        <td>Cell Text 1</td>
        <td>Cell Text 2</td>
        <td>Cell Text 3</td>
        <td>Cell Text 4</td>
        <td>Cell Text 5</td>
        <td>Cell Text 6</td>
        <td>Cell Text 7</td>
        <td>Cell Text 8</td>
        <td>Cell Text 9</td>
        <td>Cell Text 10</td>
        <td>Cell Text 11</td>
        <td>Cell Text 12</td>
        <td>Cell Text 13</td>
        <td>Cell Text 14</td>
        <td>Cell Text 15</td>
        <td>Cell Text 16</td>
        <td>Cell Text 17</td>
        <td>Cell Text 18</td>
        <td>Cell Text 19</td>
        <td>Cell Text 20</td>
      </tr>
      <tr>
        <td>Cell Text 1</td>
        <td>Cell Text 2</td>
        <td>Cell Text 3</td>
        <td>Cell Text 4</td>
        <td>Cell Text 5</td>
        <td>Cell Text 6</td>
        <td>Cell Text 7</td>
        <td>Cell Text 8</td>
        <td>Cell Text 9</td>
        <td>Cell Text 10</td>
        <td>Cell Text 11</td>
        <td>Cell Text 12</td>
        <td>Cell Text 13</td>
        <td>Cell Text 14</td>
        <td>Cell Text 15</td>
        <td>Cell Text 16</td>
        <td>Cell Text 17</td>
        <td>Cell Text 18</td>
        <td>Cell Text 19</td>
        <td>Cell Text 20</td>
      </tr>
    </tbody>
  </table>
</div>

JavaScript

new hx.StickyTableHeaders('#table')

CSS

.example-table {
  max-height: 300px;
  overflow: hidden;
}
Api
Prototypes
hx.StickyTableHeaders
A module for applying sticky headers to a html table by restructuring it. The headers can be sticky to the left or the top of the table and will remain in place when scrolling.
Constructors
hx.StickyTableHeadersselectorString / HTMLElementoptionsObject
Creates a table with sticky headers.
Arguments
selectorString / HTMLElement
The selector of the table or table container to use when creating the sticky headers.
Whilst this can be a table element, it's recommended to use a container for the table element as the selector as it reduces the potential issues:
<div id="table"> <!-- Use this container as the selector -->
  <table class="hx-table">
    <thead>
      ...
    </thead>
    <tbody>
      ...
    </tbody>
  </table>
</div>
options
The options to use when creating the sticky headers.
Properties
alwaysStickyBoolean
A boolean to determine whether to always display the sticky headers even when the table cannot be scrolled.
Default: false
containerClassString
An additional class to add to the container to allow styling. This is mostly useful when the root element passed into the constructor is a table as the table element will no longer be the root element.
stickFirstColumnBoolean
Whether or not to stick the first column to the left side of the table.
Default: false
stickTableHeadBoolean
Whether or not to stick the <thead> element of the table. This will stick all rows that are inside the <thead> element to the top of the table.
Default: true
useResponsiveBoolean
Whether to add a listener to the table when the container is resized to re-render the sticky headers so that the header sizes always match the table sizes correctly.
Default: true
Events
render
The event called when the sticky table headers are rendered.
Methods
render
A method for rendering the table headers when required.