
Security News
Feross on Risky Business Weekly Podcast: npm’s Ongoing Supply Chain Attacks
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
@stenajs-webui/grid
Advanced tools
This package contains hooks and components that can help create grids that can be navigated similar to Excel.
Column configs has three options for summary rows:
renderSummaryCell
summaryText
summaryCellColSpan
If renderSummaryCell
or summaryText
is set for any column,
the table will get a summary row at the bottom.
summaryText
Receives items
in argument object, and must return a string.
renderSummaryCell
Receives items
and text
in argument object.
If no summaryText
was specified, then text
will be undefined.
If no renderSummaryCell
is specified, then a default renderer for summary
will be used.
Examples:
summaryText: ({ items }) =>
String(sumBy(items, (item) => item.numPassengers ?? 0)),
renderSummaryCell: ({ items, text }) => (
<Indent>
<Tag label={text} />
</Indent>
)
summaryCellColSpan
can be set to make the cell span multiple columns.
If any columns after the spanning column has summary options, they will be ignored.
If there are column groups, a column can only span over columns of that column group.
If summaryCellColSpan
is too high and won't fit into the table (or column group) then
the col span will be limited so that it fits.
FAQs
Unknown package
We found that @stenajs-webui/grid demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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.
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.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.