nano-table

0.1.0-beta.3 • Public • Published

nano-table

A 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

Package Sidebar

Install

npm i nano-table

Weekly Downloads

0

Version

0.1.0-beta.3

License

ISC

Unpacked Size

528 kB

Total Files

4

Last publish

Collaborators

  • bradleydejong