4.0.10 • Published 3 months ago

@guiexpert/svelte-table v4.0.10

Weekly downloads
-
License
-
Repository
-
Last release
3 months ago

SvelteTable (GuiExpert Table)

This is the Svelte component of the GuiExpert Table Project.

Become a master at creating web applications with large tables

This is the UI-agnostic table component for your next web app. 😊

Features

  • Handle large datasets easily
  • Excellent performance for large tables by vertical and horizontal virtual scrolling
  • Fully-featured (advanced sorting and filtering)
  • Highly customizable orderData grid
  • Outstanding performance
  • No third-party dependencies
  • UI-agnostic
  • Column Interactions (resize, reorder)
  • Sorting Rows
  • Row, Column, and Range Selection
  • Single and Multi Selection
  • UI-agnostic
  • Row and Column Spanning
  • Fixed Columns (Left and Right)
  • Tree table (Hierarchical View)
  • Accessibility support: Keyboard Shortcuts
  • Custom Filtering
  • In-place Cell Editing
  • Userdefined Key and Mouse Events
  • Customizable Look & Feel (via CSS variables)
  • Row sorting
  • Column Reordering (Drag and Drop)
  • State Persistence (Row Sorting, Column Order, Selection)
  • Customizable Cell Contents via Renderer for Header, Body and Footer
  • Full control over the HTML structure and style

Links

Get Started

Add the following two NPM packages to your existing Svelte project (run this in your project root directory):

npm install --save @guiexpert/table @guiexpert/svelte-table

Add GuiexpertTable component to a template:

<GuiexpertTable
  on:mouseClicked={handleMouseClicked}
  on:tableReady={handleTableReady}
  tableModel={tableModel}
  tableOptions={tableOptions}
></SvelteTable>

Import the following classes in your component:

<script lang="ts">

import { GuiexpertTable } from "@guiexpert/svelte-table";
import {
  GeMouseEvent,
  TableApi
  TableFactory,
  TableModelIf,
  TableOptions,
  TableOptionsIf
} from "@guiexpert/table";

Add a tableModel property and a onTableReady method to the component:

const tableModel: TableModelIf = TableFactory.createTableModel({
  headerData: [
    ['Header 1', 'Header 2']
  ],
  bodyData: [
    ['Text 1a', 'Text 2a'],
    ['Text 1b', 'Text 2b'],
  ]
});  

function onTableReady(api: TableApi) {
  console.info("onTableReady API:", api);
}

There are numerous possibilities to create table models. Please refer to the Documentation for further information or the Demo section for examples.

4.0.9

3 months ago

4.0.10

3 months ago

4.0.8

3 months ago

4.0.7

3 months ago

4.0.5

3 months ago

4.0.4

3 months ago

4.0.6

3 months ago

4.0.3

3 months ago

4.0.2

3 months ago

4.0.1

3 months ago

1.0.11

3 months ago

1.0.10

5 months ago

1.0.9

5 months ago

1.0.8

5 months ago

1.0.1

7 months ago

1.0.7

6 months ago

1.0.6

6 months ago

1.0.5

6 months ago

1.0.4

6 months ago

1.0.3

6 months ago

0.0.1

1 year ago