npm.io
0.1.0-beta.3 • Published 8 years ago

nano-table

Licence
ISC
Version
0.1.0-beta.3
Deps
4
Size
516 kB
Vulns
0
Weekly
0
Stars
1

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

Keywords