New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@stenajs-webui/grid

Package Overview
Dependencies
Maintainers
0
Versions
473
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stenajs-webui/grid

  • 21.24.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
578
decreased by-18.13%
Maintainers
0
Weekly downloads
 
Created
Source

@stenajs-webui/grid

This package contains hooks and components that can help create grids that can be navigated similar to Excel.

StandardTable

Summary rows

Column configs has three options for summary rows:

  • renderSummaryCell
  • summaryText
  • summaryCellColSpan

renderSummaryCell and summaryText

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

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

Package last updated on 16 Jan 2025

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc