Skip to content

lt 0.5

Latest

Choose a tag to compare

@yihui yihui released this 17 Oct 03:32
· 11 commits to main since this release
  • Added lt_interactive() to make a table interactive in the browser: click-to-sort headers, a search box, per-column filters (plain, or typed dropdown/range/checklist widgets), pagination, column resizing, a column-visibility menu, expandable row detail, and a CSV download of the current view. Everything runs client-side via an extension loaded only for opted-in tables, and sorting and filtering stay within each row group or subtree.

  • Added lt_errorbar(), lt_sparkline(), and lt_dotplot() to draw lightweight inline plots (error bars, line/bar sparklines, dot plots) in table cells: only the numbers travel to the client and the SVG is drawn in the browser.

  • Interactive tables expose a controller el._lt for driving filters and row detail from external widgets, plus LT.ui helpers (popover(), checklist(), chip()) and a new LT.render(el, spec) for building such widgets and on-demand tables.

  • Column selection now accepts predicate formulas referencing the pronoun . (the column names), e.g. ~ endsWith(., "_time"), in all functions that select columns.

  • lt_label() now also accepts a named list or vector mapping column names to labels.

  • Added lt_wrap() to set HTML attributes on the .lt-wrap container, a hook for scoping custom CSS or sizing a table.

  • lt_spanner() no longer requires its columns in visual order; they are reordered to match the body before rendering (they must still be contiguous).

  • lt_export() no longer drops a lt_css() stylesheet attached by a relative path (thanks, @tgerke, #7).

  • lt_export() no longer spills a cropped PDF onto a second page when the table height is fractional.