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

@forter/card-list

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@forter/card-list

card-list from Forter Components

  • 1.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

fc-card-list

An element by Forter

Usage

<script>
   import '@forter/card-list';
</script>

<fc-card-list>
</fc-card-list>

Properties

PropertyAttributeTypeDescription
ROW_INTENTS{}
columnscolumnsany[]Columns titles
getRowClass(rowClass: any, intent: any) => any
getSortedRows() => any
renderColumnsHeaders() => TemplateResult
renderData(intent: any, data: any) => TemplateResult
renderDataCell({ label, customRenderer }: { label: any; customRenderer: any; }) => any
renderRows() => TemplateResult
rowsrowsanyExample: {
intent: 'disabled',
data: [{label: '1'}, {label: '2'}]
}
sortBysortByany[]This is an option to sort rows by a specific key of the rows data.
After providing this object the card-list will sort rows depending on it.
columnIndex is the index of column you wish to compare. I.e. if we have following columns list (['order', 'name', 'level'])
and we want to order by 'order' columns, columnIndex should be 0 (as its the first column on the list).
sortKey should be the key in the row's data we want to sort by. I.e. if a row's data is:
data: [{label: '1', value: 1}, {label: '2', value: 2}]
we can either sort by 'label' or by 'value'. The sortFunction should be accordingly to the key's type (number, string..) as in next example:
{
columnIndex: 0,
sortKey: 'value',
sortFunction: (a,b) => {return a-b}
}

CSS Custom Properties

PropertyDescription
--fc-card-list-disabled-colordisabled color. example: gray

Keywords

FAQs

Package last updated on 26 May 2024

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