Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/atif0075/lite-table-docs

A simple and lightweight data table component for Vue.js 3. Features sorting, paging, row check, dynamic data rendering, supported TypeScript, and more.
https://github.com/atif0075/lite-table-docs

Last synced: 29 days ago
JSON representation

A simple and lightweight data table component for Vue.js 3. Features sorting, paging, row check, dynamic data rendering, supported TypeScript, and more.

Awesome Lists containing this project

README

        

# Vue 3 Lite Table

**A simple and lightweight data table component for Vue.js 3**

**Features**

- Sorting
- Paging
- Row check
- Dynamic data rendering
- Supported TypeScript
- And more!

**Installation**

**NPM**

```sh
npm install vue3-table-lite --save
```

## Usage

**JavaScript**

```js
import VueTableLite from "vue3-table-lite";
```

**TypeScript**

```ts
import VueTableLite from "vue3-table-lite/ts";
```

**Default Mode**

```js
import VueTableLite from 'vue3-table-lite'

export default {
name: 'App',
components: {
VueTableLite,
},
data() {
return {
tableData: [
{ id: 1, name: 'Alice', age: 25 },
{ id: 2, name: 'Bob', age: 30 },
{ id: 3, name: 'Carol', age: 35 },
],
}
},
}
```
```vue


ID
Name
Age
{{ item.id }}
{{ item.name }}
{{ item.age }}

```

**V-slot Mode**

```js
import VueTableLite from 'vue3-table-lite'

export default {
name: 'App',
components: {
VueTableLite,
},
data() {
return {
tableData: [
{ id: 1, name: 'Alice', age: 25 },
{ id: 2, name: 'Bob', age: 30 },
{ id: 3, name: 'Carol', age: 35 },
],
}
},
}
```
```vue



ID
Name
Age


{{ item.id }}
{{ item.name }}
{{ item.age }}

```

**Static Mode**

```js
import VueTableLite from 'vue3-table-lite'

export default {
name: 'App',
components: {
VueTableLite,
},
data() {
return {
tableData: [
{ id: 1, name: 'Alice', age: 25 },
{ id: 2, name: 'Bob', age: 30 },
{ id: 3, name: 'Carol', age: 35 },
],
}
},
}
```
```vue




ID
Name
Age




{{ item.id }}
{{ item.name }}
{{ item.age }}


```

**API Reference**

For more information on the API, please see the documentation: https://github.com/linmasahiro/vue3-table-lite.

**Contributing**

If you have any suggestions or bug reports, please feel free to open an issue on GitHub: https://github.com/linmasahiro/vue3-table-lite.

**License**

Vue 3 Lite Table is licensed under the MIT license.