Gantt Table Foot
A Gantt table foot is the footer section of a Gantt chart grid, wrapping one or more rows that provide summary information such as milestone markers, totals, or project-level notes. It is designed to be used inside a GanttTable <table> structure.
The component renders a <tfoot> element and passes through its children, which are expected to be GanttTableRow or <tr> elements.
Example
Show demo markup
<tfoot class="gantt-table-tfoot"><tr class="gantt-table-tr"><td class="gantt-table-td">Summary</td></tr></tfoot>
Usage example
<script lang="ts">
import GanttTable from "../GanttTable/GanttTable.svelte";
import GanttTableTfoot from "./GanttTableTfoot.svelte";
import GanttTableTr from "../GanttTableTr/GanttTableTr.svelte";
import GanttTableTD from "../GanttTableTD/GanttTableTD.svelte";
</script>
<GanttTable label="Plan">
<GanttTableTfoot>
<GanttTableTr>
<GanttTableTD>Total: 12 tasks</GanttTableTD>
</GanttTableTr>
</GanttTableTfoot>
</GanttTable>
Show Svelte source
// In your Svelte component:
import GanttTableTfoot from "lily-design-system-svelte-headless/components/GanttTableTfoot/GanttTableTfoot.svelte";
<GanttTableTfoot>
<!-- GanttTableTfoot content -->
</GanttTableTfoot>
Usage
<GanttTable label="Q1 2025 schedule">
<GanttTableHead>...</GanttTableHead>
<GanttTableBody>...</GanttTableBody>
<GanttTableTfoot>
<GanttTableRow>
<GanttTableTH scope="row">Milestone</GanttTableTH>
<GanttTableTD></GanttTableTD>
<GanttTableTD></GanttTableTD>
<GanttTableTD>Launch</GanttTableTD>
</GanttTableRow>
</GanttTableTfoot>
</GanttTable>
Props
children: slot (required) -- footer rows with summary or milestone content
...restProps: Any additional HTML attributes passed to the <tfoot> element
Keyboard Interactions
None -- this component is a passive container. Keyboard navigation is handled by the parent GanttTable grid.
ARIA
- Implicit
rowgroup role from the <tfoot> element -- groups the footer rows of the grid
When to Use
- Use inside GanttTable to provide the
<tfoot> footer section.
- Use to display milestone summaries, totals, or project-level notes beneath the task rows.
- Use when the Gantt chart needs aggregate information such as delivery dates or completion percentages.
When Not to Use
- Do not use outside of a GanttTable structure -- use TableFoot or DataTableFoot for general tables.
- Do not use for header rows -- use GanttTableHead instead.
- Do not use when the Gantt chart has no summary data; the footer section is optional.
Headless
This headless component provides a <tfoot> element with implicit rowgroup role for grouping footer rows within a Gantt chart grid. The consumer provides all visual styling including borders, background colors, and summary formatting.
Styles
The consumer provides all CSS styling. The component renders with a .gantt-table-tfoot class for targeting. No default styles are included — this is a fully headless component.
Testing
- Verify the component renders a
<tfoot> element with class gantt-table-tfoot
- Verify pass-through attributes are applied
Advice
- Designers: Visually distinguish the footer from the body rows using a heavier border or different background color. Use the footer for milestone dates or completion summaries.
- Developers: Place GanttTableRow elements as children containing summary cells. The footer renders at the bottom of the table regardless of source order.
Implementation Notes
- Renders as a
<tfoot> element for the footer section of a Gantt chart grid
- Children should be one or more rows providing summary, milestone, or aggregate information
- Designed to be used inside a GanttTable
<table> structure
- Spreads
restProps onto the <tfoot> element for consumer customization
- No internal state -- purely a structural wrapper
Related components
gantt-table — a Gantt chart table interactive grid for planning schedule visualization <table>
gantt-table-thead — see components.tsv
gantt-table-tbody — see components.tsv
gantt-table-tr — see components.tsv
gantt-table-th — a Gantt chart table interactive grid header cell for planning schedule visualization <th>
gantt-table-td — a Gantt chart table interactive grid data cell for planning schedule visualization <td>
References
- WAI-ARIA Grid Pattern: https://www.w3.org/WAI/ARIA/apg/patterns/grid/
Canonical contract
Generated from this component's canonical metadata — the machine-checked source the implementations are held to.
Metadata
- Component: gantt-table-tfoot
- PascalCase: GanttTableTfoot
- Description: a Gantt chart table interactive grid tfoot for planning schedule visualization <tfoot>
- Status: beta — implemented and unit-tested in all seven frameworks with an axe-clean demo page; not yet exercised in composed flows
- HTML tag: <tfoot>
- CSS class: .gantt-table-tfoot
- Interactive: no
ARIA
- Implicit
rowgroup role from the <tfoot> element -- groups the footer rows of the grid
Keyboard
- No keyboard interactions — this is a passive element
Props
children: slot (required) -- footer rows with summary or milestone content ...restProps: Any additional HTML attributes passed to the <tfoot> element