import htmltools as html
from reactable.data import cars_93
from reactable import Reactable, Column, embed_css
embed_css()
= cars_93[20:25, ["manufacturer", "model", "type", "price"]] data
Rendering header and footer
Headers
from reactable.models import HeaderCellInfo
def fmt_header(ci: HeaderCellInfo):
return html.div(f"name: {ci.name}", html.br(), f"value: {ci.value}")
Reactable(
data,={"manufacturer": Column(header=fmt_header, name="Manufacturer")},
columns )