Socket
Socket
Sign inDemoInstall

flexi-table

Package Overview
Dependencies
317
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    flexi-table

A Vue.js component Table


Version published
Maintainers
1
Created

Readme

Source

Flexi Table

Flexible, mobile responsive Vue.js Table Component

Installation

npm install flexi-table --save-dev

Module

import FlexiTable from 'flexi-table';

Browser

Include the script file, then install the component with Vue.use(FlexiTable); e.g.:

<script type="text/javascript" src="node_modules/vuejs/dist/vue.min.js"></script>
<script type="text/javascript" src="node_modules/flexi-table/dist/flexi-table.min.js"></script>
<script type="text/javascript">
  Vue.use(FlexiTable);
</script>

Usage

Once installed, it can be used as simply as:

<flexi-table  :color="'green'"
              :rows="rows"
              :column="columns">
</flexi-table>
/*
    Color has to be string. Four options available for test purposes
    -green
    -red 
    -blue
    -yellow
  */
 let color = 'green';

  /*
    Rows should be array like example below
  */
 let rows = ['Row 1', 'Row 2', 'Row 3'];
   /*
     Columns should be array as well
   */
 let columns = [
                {columnName: "Adam", columnType: "Some Product", columnSize: "XXL"},
                {columnName: "Adam", columnType: "Some Product", columnSize: "XXL"},
                {columnName: "Adam", columnType: "Some Products",columnSize: "M"},
             ] 

API

Props

NameTypeDescription
colorStringSet Color
rowsArraySet rows / headers
columnsArraySet columns

##TODO

Keywords

FAQs

Last updated on 16 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