mosaic icon indicating copy to clipboard operation
mosaic copied to clipboard

HTML in columns in `Table`

Open declann opened this issue 10 months ago • 2 comments

I'm wanting to show HTML in a table element.

Locally I hacked the table code here to conditionally appendChild formats[j](value) rather than set innerText, and then I can specify a format for a column that returns a HTML element.

Could submit a PR if this behavior + approach is desirable.

Usecases: putting links, images, other rich content alongside responsive table info connected to Mosaic. (Of course, custom clients also work)

declann avatar May 03 '25 22:05 declann

https://github.com/apple/embedding-atlas/tree/main/packages/table supports custom cells. does that address your request?

domoritz avatar Jun 06 '25 15:06 domoritz

Thanks for the pointer - Custom cells and embedding-atlas Table and the things around it look seriously neat! But in Observable Framework I'm struggling to render and init the table using the React or Svelte wrappers.

I think that custom cells do work for my usecase, and embedding-atlas table is a good solution when I consider a formalised (React/Svelte) app

declann avatar Jun 19 '25 17:06 declann