Renders an interactive reactable::reactable() with one row per table.
Global search also matches ftypes and raw/tidy column names (via hidden
searchable columns). Click a row to expand it and see the table's ftype and
its columns, with one column per schema version marking where each column
is present.
The widget carries its own CSS: on a pkgdown/Quarto page it hides the sidebar and breaks out of the content column to (almost) the full viewport width, so child packages get the same layout without extra SCSS.
This is a low-level function; most callers should use nemo_schema_reactable()
instead.
Arguments
- dat
data frame as produced by
nemo_schemavis_data().- tool_colours
named character vector of CSS colours, keyed by tool name, used for the tool pills (child packages supply their own, e.g.
tidywigits::WIGITS_TOOL_COLOURS). Tools not listed, or all tools whenNULL, fall back to grey.- ...
additional arguments passed to
reactable::reactable().
Examples
if (FALSE) { # \dontrun{
dat <- nemo_schemavis_data("tool1", pkg = "nemo")
reactable_schema(dat)
reactable_schema(dat, tool_colours = c(tool1 = "tomato"))
} # }
