0.2.22 • Published 11 months ago

tablevu v0.2.22

Weekly downloads
15
License
MIT
Repository
github
Last release
11 months ago

tablevu (alpha version)

Simple javasript table for vuejs 3.x (Doesn't work with vuejs 2.x)

  • No Dependencies

  • Working with javascript array or server side (odata or default request)

  • Sorting

  • Filtering

  • Custom column rendering

  • ...

Install

npm install tablevu

Usage

  • data : Array or Server side parameters

  • grouping : Grouping data specific column or function

  • filter : Reactive filter value

  • search : Reactive search value

  • rowid : Key value for row.

  • class : Table class name. (default "table")

  • buttonclass : Arrow buttons class name (default "btn")

  • onRowClick : Row click event

  • onRowDblClick : Row double click event

  • columns

    • name : Column name

    • label : Column label

    • searchable : Column is searchable (default true)

    • orderable : Column is orderable (default true)

    • width : Column width

    • align : Column align

    • style : Column style

    • type : Data type (datetime, date, time, numeric). Show local value

    • render : Render value

Samples

  • odata sample (Coming soon..)
  • search sample (Coming soon..)

odata sample

<template>
  <tablevu :data="grid" rowid="OrderId" />
</template>

<script>
import { tablevu, odata } from 'tablevu'

export default {
  name: 'App',
  components: {
    tablevu
  },
  setup() {
    const prm = {
      url: `https://services.odata.org/V3/Northwind/Northwind.svc/Orders?$format=json`,
      header: { 'Content-Type': 'application/json;odata=verbose' },
      select: ['OrderID', 'OrderDate', 'ShipName', 'ShipAddress'],
      expand: [
      ]
    };

    const grid = {
      adapter: (grd) => {
        return odata(prm, grd);
      },
      pageSize: 10,
      columns: [
        { name: 'OrderID', label: 'id', width: '26rem' },
        { name: 'OrderDate', label: 'name', width: '26rem' },
        { name: 'ShipName', label: 'name', width: '26rem' },
        { name: 'ShipAddress', label: 'name', width: '26rem' },
      ]
    }

    return { grid }
  }
}
</script>

Dev. Dependencies

Browser Support

Modern browsers.

Authors

endb

License

tablevu is open-sourced software licensed under the MIT license.

0.2.22

11 months ago

0.2.21

11 months ago

0.2.20

1 year ago

0.2.19

1 year ago

0.2.18

1 year ago

0.2.17

1 year ago

0.2.16

1 year ago

0.2.15

2 years ago

0.2.14

2 years ago

0.2.13

2 years ago

0.2.12

2 years ago

0.2.11

2 years ago

0.2.10

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.9

2 years ago

0.2.8

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.5

2 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

1.0.0

4 years ago