Closed kipcole9 closed 3 months ago
Hey @kipcole9! I like the idea, just a small note on the API and we can ship it :D
Ah and as for tests, please add one in test/kino/data_table_test.exs
. For example here:
The data: [...]
carries the already formatted values.
@jonatanklosko, thanks for the review and great suggestions. I've made the requested changes, tests are passing. Now I just need to add a new test as you proposed.
Test case added so I think this is now ready for the next review.
@kipcole9 perfect, last two nitpicks!
Fixed as requested. Let me know if there's anything else?
See the discusssion in #440.
Adds a
:formatter
option toKino.DataTable.new/2
which is a 2-arity function passed thekey
(column name) and cell value.The special key
:__header__
is passed when formatting the column headings.