Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sling-web-component-table

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sling-web-component-table

Sling Table

  • 1.13.0
  • npm
  • Socket score

Version published
Weekly downloads
6
increased by20%
Maintainers
1
Weekly downloads
 
Created
Source

sling-web-component-table

Install

npm install sling-web-component-table

Tag

  <sling-table></sling-table>

Dependencies

  • sling-framework
  • sling-helpers
  • sling-web-component-brand-icon

Attributes and properties

NameTypeDefault ValuesReflectToAttributeObservercallSdk
srccolumnsArray[ ]
srcdataArray[ ]
noheaderBooleanfalse:heavy_check_mark:
clickablerowsBooleanfalse:heavy_check_mark:

Description

NameDescription
srccolumnsArray with the specification of the table columns. Each element of array is an object representing a column in the format { title: 'Column Label', field: 'columndatakey' }.
srcdataArray containing data to be shown. Each element of array is an object with field names informed in srccolumns.
noheaderHides table header.
clickablerowsEnables click event for table rows.

Events

  • rowclicked

Description: The event is triggered when a row is clicked and passes this information to the parents.

Examples

All component examples can be emulated using the npm start sling-web-component-table command.

Usage

<sling-table></sling-table>
<sling-table noheader></sling-table>

image

<sling-table clickablerows></sling-table>

image

<sling-table noheader clickablerows></sling-table>

image

FAQs

Package last updated on 03 Apr 2019

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