@ganttkit/plugin-toolbar
v0.1.2
Published
View-mode / zoom / today toolbar for GanttKit (UI-slot plugin).
Readme
@ganttkit/plugin-toolbar
A view-mode / zoom / today toolbar, rendered into the renderer's toolbar slot. One package, works across svg, html, canvas (any renderer that hosts UI slots the bundled ones do).
import { toolbarPlugin } from '@ganttkit/plugin-toolbar'
engine.use(toolbarPlugin())Controls (all optional): a view-mode segmented control, zoom in/out (steps the view mode), and a "Today" button that scrolls the viewport to the current day.
Options
viewModesmodes for the segmented control. Default['Day','Week','Month'].zoomshow zoom buttons. Defaulttrue.todayshow the Today button. Defaulttrue.ordersort order within the toolbar slot.
Styled via .gantt__toolbar / .gantt__tb-* in the default theme.
License
MIT
