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
orol
? - Zero-config "just works" implementation. Default columns/sorting based on inspecting common properties in the objects
- ✓
Allow custom column renderers
- Column configurations
-
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