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

coins-vue-data-table

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coins-vue-data-table

A Vue.js data table component for COINS

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-83.33%
Maintainers
1
Weekly downloads
 
Created
Source

coins-vue-data-table

A Vue.js data table component

Properties

name ( type ) [ default ]
data-source (string | array) [ required ]

If data-source is a string, a GET request will be made to that URL. Otherwise, if data-source is an array, that will be used as the table data.

columns (array) [ required ]

An array of the table columns an their parameters. Possible values:

  • name Name displayed on table
  • data (string) Key referenced in data
  • data (function) A function determines column render. It is passed the data row.
  • type There are two options here:
    • 'numeric'. This facilitates accurate sorting. By default sorting uses String's localeCompare function.
    • 'button' A button object with possible title, class and click properties
  • visible Whether or not a column should be initially visible

Note: By default boolean table values are converted to Yes/No for true/false respectively. This behavior can be overwritten with the function data data type.

checkboxes (boolean) [ false ]

When enabled, the first column of the table will contain checkbox inputs.

Pagination

rowsPerPage (integer) [ 20 ]

Number of rows to display

visiblePageRange (integer) [ 6 ]

Number of pages to be visible in the page selector

skipRange (integer) [ 5 ]

How far the >> and << buttons should skip

Table Controls

exportButton (boolean) [ true ]

Whether or not the export button should be visible

columnsButton ( boolean ) [ true ]

Whether or not the column selector button should be visible

filter ( boolean ) [ true ]

Whether or not the filter should be visible

buttons ( array )

An Array of button objects that will be listed next to the other table buttons. The format for the buttons is as follows:

{
    title: 'Title displayed on button',
    click: (checked rows or all rows if checkboxes are disabled) => { ... }
}

Keywords

FAQs

Package last updated on 02 Apr 2018

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