[READ-ONLY] Mirror of https://github.com/andrioid/generic-table-ts. Prototype. Playing around with TypeScript generics and a stackable Table.
0

Configure Feed

Select the types of activity you want to include in your feed.

TypeScript 87.4%
CSS 6.1%
HTML 3.5%
JavaScript 3.0%
4 1 0

Clone this repository

https://git.vm.fail/andri.dk/generic-table-ts https://git.vm.fail/did:plc:7uoy6lfouymyh3e46bzgj5yx
ssh://git@knot1.tangled.sh:2222/andri.dk/generic-table-ts ssh://git@knot1.tangled.sh:2222/did:plc:7uoy6lfouymyh3e46bzgj5yx

For self-hosted knots, clone URLs may differ based on your setup.


README.md

Stacked Table#

Playing with TypeScript generics and stacked tables for mobile uses.

Note: Prototype that I decided to push to Github for later reference. Don't expect support

Features#

  • Data and presentation configuration are separated. Ideal for throwing API rows into.
  • Collapsable fields with help from Tailwind
    • Possible to define where it should collapse to, or omit for hiding

Tasks#

  • Accepts any data, infers types or accepts a generic
  • renderField correctly infers correct types for value, field-config and row
  • Geared towards data-driven tables, but also supports extraFields.
  • Uses default key ordering, but field configuration also accepts "weight"