
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
d-scrollable-table
Advanced tools
Scrollable table with fixed (floating) thead and N first column(s)
app.component( require('d-scrollable-table') );
There are 2 ways to set up scroll handling:
<div style="overflow: auto" on-scroll="scrollable.scroll($element)">
<view is="d-scrollable-table" as="scrollable"></view>
<table>
<tbody>
<tr>
<!--
IMPORTANT! Cells that should be fixed when scrolling horizontally
MUST be <th>. So if you want 3 first columns to be fixed when
scrolling, make sure that first 3 cells in each row of <tbody>
are <th> and all the others are <td>
-->
<th>Fixed 1</th>
<th>Fixed 2</th>
<th>Fixed 3</th>
<td>Normal</td>
<td>Normal</td>
<!-- ... -->
<td>Normal</td>
</tr>
<!-- ... -->
<tr>
<!-- ... -->
</tr>
</tbody>
<thead>
<!--
IMPORTANT! thead MUST be on the very bottom after <tbody>.
All browsers will still render it on the top so don't worry.
All cells must be <th>.
-->
<tr>
<th>...</th>
<th>...</th>
<!-- ... -->
<th>...</th>
<tr>
</thead>
</table>
</div>
<view is="d-scrollable-table" as="scrollable"
on-create="scrollable.scrollParent($controller.table)"></view>
<table as='table'>
<!-- ... -->
</table>
hiddenClass
specifies the class name of hidden <tr>
s.
It's used in <th>
-search algorithm that determines
the amount of columns to make float.
By default it's u-hidden
, so all <tr>
s with this class
will be omitted.
update
is any variable that you can pass to listen for
its changes and force update the table (useful when your
columns may change dynamically)
MIT
FAQs
Scrollable table with fixed (floating) thead and N first column(s)
The npm package d-scrollable-table receives a total of 7 weekly downloads. As such, d-scrollable-table popularity was classified as not popular.
We found that d-scrollable-table demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 28 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.