@gits-id/table

GITS DataTable Table Component
3,591
Install
npm install @gits-id/table@0.16.1
Latest Version:0.16.1
Vue:3
License:MIT
Last Updated:Mar 13, 2023
Links: npm
Maintainer: hyanuar

DataTable

DataTable component.

Installation

npm

npm i @gits-id/table

yarn

yarn add @gits-id/table

pnpm

pnpm add @gits-id/table

Usage

<script setup lang="ts">
import VDataTable from '@gits-id/table';
import '@gits-id/table/dist/style.css';

const states = ['active', 'inactive'];

const items = [...Array(30)].map((_, index) => ({
  index,
  name: `User-${index}`,
  email: `user-${index}@example.com`,
  age: index + 1 * 10,
  state: states[Math.floor(Math.random() * states.length)],
}));

const headers = [
  {
    value: 'index',
    text: 'No.',
  },
  {
    value: 'name',
    text: 'Name',
  },
  {
    value: 'email',
    text: 'Email',
  },
];
</script>

<template>
  <VDataTable :items="items" :headers="headers" />
</template>

Documentation

View full documentation here.

License

MIT

Related Packages

@gits-id/card

GITS Card Component

4,636
@gits-id/collapsible

GITS Collapsible Component

4,352
@gits-id/pages

GITS Pages Component

4,233
@gits-id/nav-drawer

Vue Navigation Drawer Component

4,191
@gits-id/tooltip

GITS Tooltip Component

4,074

Version History

Version Released Vue License
0.16.1 ^3.2.33 MIT
0.16.0 ^3.2.33 MIT
0.15.2 ^3.2.33 MIT
0.15.1 ^3.2.33 MIT
0.15.0 ^3.2.33 MIT
Pre-releases (61)
Version Released Vue License
1.0.0-beta.4 ^3.2.33 MIT
1.0.0-beta.3 ^3.2.33 MIT
1.0.0-beta.2 ^3.2.33 MIT
1.0.0-beta.1 ^3.2.33 MIT
0.15.2-alpha.10 ^3.2.33 MIT