0.59.11 โ€ข Published 2 months ago

@stacksjs/tables v0.59.11

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

Table Stack

The easy & modern way to work with tables of any size. Blazing-fast searching, filtering, sorting, and paginating. Powered by your search engine of choice. Kick-start the development of a feature-rich & configurable table UI, including a beautiful default UX.

๐Ÿ™ Features

This Vue component library comes with the following features, improvements to the table element:

  • <table-v2 />
    • quickly spin up a highly-configurable table UI without worrying about the backend
    • "facet-filtering" & "table head sorting" natively built-in
    • Meilisearch & Laravel Scout API compatible
    • Enterprise-ready
    • Soon: Algolia & Typesense integration

Get granular control over the table appearance & behavior, with the following (optional) components:

  • <table-search />

    • configure your search input for blazing fast search results
  • <table-filters />

    • overwrite the default display of your table's filters
  • <table-pagination />

    • easily configure the pagination of your table
  • <table-configure />

    • simple way to configure the table in HTML semantic fashion

Read more about these features in their respective docs.

๐Ÿ’ก Get Started

To get started, you simply need to install the @stacksjs/table-vue npm package.

npm install @stacksjs/table-vue
bun add @stacksjs/table-vue

Next up, we need to make use of the components.

<script setup>
import { Table as TableV2 } from 'table-vue'
</script>

<template>
  <!-- the `type`-property indicates to to the search engine the "index" you want to target -->
  <TableV2 type="movies" />

  <!-- these are the default properties (all of them are optional)  -->
  <TableV2
    source="127.0.0.1:7700"
    columns="*"
    :searchable="true"
    :filterable="true"
    :sortable="true"
    :actionable="true"
    :selectable="false"
    :per-page="20"
  />

  <!-- another "data table" example -->
  <TableV2
    source="127.0.0.1:7700"
    password="NtUvZv5Q87e355b807622149c350ac38679645b4e2603a1d3eb48cda080f977e76329aeb"
    type="orders"
    columns="id: Order, customer_name: Customer, customer_po: PO#, part_name: Part, created_at: Ordered, due_at: Due, stage_name: Status"
    sort="id:desc"
    sorts="id, customer_name, customer_po, part_name, stage_name, due_at, created_at"
    filters="customer_name, vendor_name, part_name, document_types"
    actions="Edit"
    per-page="10"
    selectable="true"
  />
</template>

To learn more about what's possible & how to best build modern data tables, check out our documentation.

๐Ÿงช Testing

yarn test

๐Ÿ“ˆ Changelog

Please see our releases page for more information on what has changed recently.

๐Ÿšœ Contributing

Please see CONTRIBUTING for details.

๐Ÿ Community

For help, discussion about best practices, or any other conversation that would benefit from being searchable:

Table Elements on GitHub

For casual chit-chat with others using this package:

Join the Open Web Discord Server

๐Ÿ“„ License

The MIT License (MIT). Please see LICENSE for more information.

Made with ๐Ÿ’™ by Open Web Labs.

0.59.11

2 months ago

0.59.8

2 months ago

0.59.9

2 months ago

0.59.7

2 months ago

0.59.10

2 months ago

0.59.2

2 months ago

0.59.3

2 months ago

0.59.1

2 months ago

0.59.6

2 months ago

0.59.4

2 months ago

0.59.5

2 months ago

0.58.73

3 months ago

0.58.72

3 months ago

0.58.70

3 months ago

0.58.71

3 months ago

0.58.69

3 months ago

0.58.65

3 months ago

0.58.66

3 months ago

0.58.67

3 months ago

0.58.68

3 months ago

0.58.60

3 months ago

0.58.62

3 months ago

0.58.63

3 months ago

0.58.64

3 months ago

0.58.59

3 months ago

0.58.58

3 months ago

0.58.57

3 months ago

0.58.56

3 months ago

0.58.55

3 months ago

0.58.52

3 months ago

0.58.53

3 months ago

0.58.50

3 months ago

0.58.51

3 months ago

0.58.49

3 months ago

0.58.47

3 months ago

0.58.48

3 months ago

0.58.43

3 months ago

0.58.44

3 months ago

0.58.45

3 months ago

0.58.46

3 months ago

0.58.27

4 months ago

0.58.28

4 months ago

0.58.21

4 months ago

0.58.22

4 months ago

0.58.24

4 months ago

0.58.19

4 months ago

0.58.20

4 months ago

0.51.0

1 year ago

0.50.0

1 year ago

0.49.3

1 year ago

0.49.2

1 year ago

0.49.1

1 year ago

0.49.0

1 year ago

0.48.3

1 year ago