Column Header Style
| Property | Type | Default | Description |
|---|---|---|---|
columns.<key>.header | object | None | Header styling configuration for the column |
columns.<key>.header.style | string | None | Name of a predefined or custom style to apply to the column header. Must reference a style name from the styles section or a predefined style. |
Applying a Style to a Column Header
Reusing Header Styles with YAML Anchors
YAML anchors reduce repetition when multiple columns share the same header style:Column Group Header Style
Column groups apply styles to the group header bar and optionally to all column headers within the group.| Property | Type | Default | Description |
|---|---|---|---|
columnGroups.<id>.groupStyle | string | None | Style applied to the column group header background. References a predefined or custom style name. If not specified, white is used. |
columnGroups.<id>.headerStyle | string | None | Style applied to all column headers within the group. Can be overridden by header.style on individual columns. If not specified, white is used. |
Applying Styles to a Column Group
Header Style Resolution
columns.<key>.header.style— applied if defined (highest priority)columnGroups.<id>.headerStyle— applied if column belongs to a group and noheader.styleis set- Default white — applied if neither is defined
Predefined Header Styles
All 20 predefined styles are available for header use. See the full list in Styles.| Category | Style Names |
|---|---|
| Neutral | none, boldTitle, unsupported, darkgrey, grey |
| Red | darkred, red |
| Orange | darkorange, orange |
| Green | darkgreen, green, lightgreen |
| Blue | darkblue, blue, lightblue |
| Teal | darkteal, teal |
| Purple | darkpurple, purple, lightpurple |
Custom Header Styles
Define custom styles in thestyles section and reference them from header configurations:
Complete YAML Example
Related Pages
- Styles — predefined and custom style definitions with color token reference
- Column Groups —
groupStyleandheaderStyleproperties - Column Properties — full column property reference including
header - Formatters — conditional cell styling (separate from header styling)
Source references: Column and Column Group Header Styles KB article, powersheet.yaml, whole_rtm.template.yaml, ConfigProvider.tsx (DEFAULT_STYLES)
Sources
Sources
KB ArticlesSource Code
powersheet.yamlprod-powersheet-src/com.nextedy.powersheet.client/cypress/fixtures/configurations/whole_rtm.template.yamlprod-powersheet-src/com.nextedy.powersheet.client/cypress/fixtures/configurations/mip_undo_redo.template.yamlprod-powersheet-src/com.nextedy.powersheet.client/src/modules/Powersheet/Powersheet.tsxprod-powersheet-src/com.nextedy.powersheet.client/ltc-repo/packages/sheet/SheetComponent.tsx