# nano-table

> A nano component for sortable tables

Latest version **0.1.0-beta.3** (published 2018-03-14) · ISC license · 0 weekly downloads

## Install

```sh
npm install nano-table
pnpm add nano-table
yarn add nano-table
bun add nano-table
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0-beta.3 |
| Published | 2018-03-14 |
| First published | 2018-03-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 516.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Bradley DeJong |
| Maintainers | bradleydejong |
| Keywords | nanocomponent, table, component, grid |

## Links

- npm: https://www.npmjs.com/package/nano-table
- Repository: https://github.com/BradleyDejong/nano-table
- Homepage: https://github.com/BradleyDejong/nano-table#readme
- Issues: https://github.com/BradleyDejong/nano-table/issues
- npm.io page: https://npm.io/package/nano-table

## Dependencies (4)

- [bel](https://npm.io/package/bel.md) ^5.1.7
- [ramda](https://npm.io/package/ramda.md) ^0.25.0
- [folktale](https://npm.io/package/folktale.md) ^2.1.0
- [nanocomponent](https://npm.io/package/nanocomponent.md) ^6.5.1

## Alternatives

- [@lexical/table](https://npm.io/package/@lexical/table.md) — 3.0M weekly downloads
- [mantine-datatable](https://npm.io/package/mantine-datatable.md) — 98.2K weekly downloads
- [react-native-collapsible-tab-view](https://npm.io/package/react-native-collapsible-tab-view.md) — 70.6K weekly downloads
- [@handsontable/vue3](https://npm.io/package/@handsontable/vue3.md) — 16.1K weekly downloads
- [vuewordcloud](https://npm.io/package/vuewordcloud.md) — 7.2K weekly downloads

## Recent versions

- 0.1.0-beta.3 (latest) — 2018-03-14
- 0.1.0-beta.4 (beta) — 2018-03-14
- 0.1.0-beta.0 (prerelease) — 2018-03-13
- 0.1.0-beta.2 — 2018-03-13
- 0.1.0-beta.1 — 2018-03-13

## README

# nano-table

A [nanocomponent](https://github.com/choojs/nanocomponent) for tables. Mainly for my own learning/experimentation.

## TODOS
- API design
  - Column configurations
    - ✓ ~~display name~~
    - ✓ ~~toString as default~~
    - ✓ ~~allow override~~
    - ✓ ~~sort fn~~
    - ✓ ~~Default value fn for items where accessor returns null~~
    - ✓ ~~Override sortBy on a column-by-column level~~
  - `tr` ID configuration
  - Callbacks on row click
  - ✓ ~~Initial sort~~
  - (current sort callback)?
  - Allow for `table` or `ol`?
  - Zero-config "just works" implementation. Default columns/sorting based on inspecting common properties in the objects
  - ✓ ~~Allow custom column renderers~~

- User feedback
  - icon for which column is currently sorting
  - built-in styles(?)

- User interaction
  - ✓ ~~Clicking header sorts by that item~~
  - ✓ ~~Clicking header of already-selected sort reverses the sort~~

- Internals
  - ✓ ~~Sort by asc/desc~~

- Integrations
  - Write documentation for nanocomponent adapters for use in Angular

- General
  - Write up API docs and examples

---
_Source: https://npm.io/package/nano-table · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
