Socket
Socket
Sign inDemoInstall

simple-vue-datatable

Package Overview
Dependencies
2
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    simple-vue-datatable

A simple datatable component library created for Vue.JS.


Version published
Maintainers
1
Created

Readme

Source

simple-vue-datatable

A simple datatable component library created for Vue.JS.

Installation

npm install --save simple-vue-datatable

Usage

  • In main.js import 'simple-vue-datatable
  • From your component
data: () => {
    data: {
    tableData: [
            {
                "Column 1":"Col1Val1",
                "Column 2":"Col1Val2",
                "Column 3":"Col1Val2",
                "Column 4":"Col1Val2",
                "Column 5":"Col1Val2",
                "Column 6":"Col1Val2",
                "Column 7":"Col1Val2"
            }
        ]
    }
}

<simple-vue-datatable :data="data" />

Error messages along with code

  • ERR_INAPPROPRIATE_KEYS: The sent data object has inappropriate number of keys as compared to the number of those that are required.
  • ERR_TABLEDATA_DATA_TYPE: The 'tableData' entry the sent data object must be an Array.
  • ERR_MISSING_KEY_IN_DATA_OBJECT: One or more mandatory keys were not found in the sent data object.
  • ERROR_NO_TABLEDATA_SENT: The size of the 'tableData' array in the sent data object is empty.

Warning messages along with code

  • WARNING_TOO_MANY_KEYS: The sent data object has more keys than expected. The extra keys will be ignored by default.

Keys to be avoided in the 'tableData' of the input

  • __row_ID - This key is being used by this component internally for indexing purposes. Sending this key would lead to overriding the data sent.

Keywords

FAQs

Last updated on 24 Apr 2019

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc