ez-table

0.4.0 • Public • Published

ez-table

A Vue component that displays a table with a scrollable body and fixed header.

Compatibility browser

All browsers

Installation

npm i --save-dev ez-table

Demo

Sandbox Demo

Module

import ezTable from 'ez-table'
Vue.use(ezTable)

Usage

Once installed, it can be used in a template as simply as:

<ez-table bottom-marge=12>
  <thead slot="thead">
      <th>C1</th>
      <th>C2</th>
      <th>C3</th>
  </thead>
  <tbody slot="tbody">
      <tr>
          <td>item1</td>
          <td>item2</td>
          <td>item3</td>
      </tr>
      <!-- ... -->
  </tbody>
</ez-table>

Columns header width will be synchronized with columns body width.

bottomMarge is the value (px) under the table triggering the scrollbar.

/ez-table/

    Package Sidebar

    Install

    npm i ez-table

    Weekly Downloads

    0

    Version

    0.4.0

    License

    UNLICENSED

    Unpacked Size

    25.9 kB

    Total Files

    3

    Last publish

    Collaborators

    • pisamad