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

vue-ahn-table

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-ahn-table

complex header of table for VueJs

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

vue-ahn-table

Vue table template, which can have complex vertical header.

Installation


npm

npm install --save vue-ahn-table

Usage


<script>
import vue from 'vue';
import aTable from 'vue-ahn-table';

vue.component('aTable', aTable);

export default {
  name: 'hello',
  data() {
    return {
      title: 'Basic Table',
      tableData: {
        header: [
          [
            { label: 'header1', isShow: true },
            { label: 'header2', isShow: true },
            { label: 'header3', isShow: true },
            { label: 'header4', isShow: true },
            { label: 'header5', isShow: true },
          ],
        ],
        rows: [
          [
            { label: 'v-title1-1', type: 'header', rowspan: 0, isShow: true },
            { label: 'v-title1-2', type: 'header', rowspan: 0, isShow: true },
            { label: 'v-column1-1', type: 'column' },
            { label: 'v-column1-2', type: 'column' },
            { label: 'v-column1-3', type: 'column' },
          ],
          [
            { label: 'v-title2-1', type: 'header', rowspan: 0, isShow: true },
            { label: 'v-title2-2', type: 'header', rowspan: 0, isShow: true },
            { label: 'v-column2-1', type: 'column' },
            { label: 'v-column2-2', type: 'column' },
            { label: 'v-column2-3', type: 'column' },
          ],
          [
            { label: 'v-title3-1', type: 'header', rowspan: 0, isShow: true },
            { label: 'v-title3-2', type: 'header', rowspan: 0, isShow: true },
            { label: 'v-column3-1', type: 'column' },
            { label: 'v-column3-2', type: 'column' },
            { label: 'v-column3-3', type: 'column' },
          ],
          [
            { label: 'v-title4-1', type: 'header', rowspan: 0, isShow: true },
            { label: 'v-title4-2', type: 'header', rowspan: 0, isShow: true },
            { label: 'v-column4-1', type: 'column' },
            { label: 'v-column4-2', type: 'column' },
            { label: 'v-column4-3', type: 'column' },
          ],
        ],
      },
    };
  },
};
</script>
<template>
  <div class="hello">    
    <a-table
     :propTableData="tableData"
     :propTitle="title"></a-table>
  </div>
</template>

Example


I have created an example vue webapp, demonstrating this table via simple vue webapp, checkout example directory in this repo.

Contributions


All contributions are welcome: use-cases, documentation, code, patches, bug reports, feature requests, etc. You do not need to be a programmer to speak up!

Keywords

FAQs

Package last updated on 17 Sep 2017

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