I’m continuing to putter away in my baseball notebook.
As I integrate more data, I’m experimenting with surfacing some of it ina table. Your excellent templating tricks make that easy, but the default table style is pretty plain. I doubt I’ve thought through all of the implications, but in in this case I would appreciated an “opinionated” bit of CSS that doctored up the table to fit your site style.
I think we could really use some great table defaults with real sophisticated professional defaults - like I’d really love to
automatically use tabular numbers, so numbers line up in columns
have good defaults for right-aligning numeric rows
and good defaults for rows with decimal accuracy
and maybe even table sorting
But after tinkering with implementing this in Observable-the-application-itself, I think it’ll really be best as a notebook that people can import, since even though these table tweaks are great, they’re also a bit opinionated, and having this be opt-in avoids the case where someone just wants tables that are more or less the HTML defaults. Our built-in styles are pretty light-touch and they should probably stay that way, to maximize flexibility.
I’ll give it a try. I am sympathetic to @jashkenas fear of going overboard. Though, as I’ve said in other threads here, I do think the RMarkdown table filters and one of its few ++ features that its competitors lack.
Hi Tom, I was playing with your notebook and noticed some minor problems with the paging. Here is a possible fix. Spotify fetch also seems broken currently. Thanks for the notebook. I learnt some good techniques to make things work in Observable (i.e. modifying the cell html with rerender).
Hello @tmcw, when the number of elements in the table are less than the number of elements per page perhaps someone would like the Previous 1 Next links removed. One liner change here: https://observablehq.com/@khubert/tables