Skip to content

feat(DataGrid): add HeaderClass and CellClass to the expand and edit columns (#597) - #602

Merged
mathewtaylor merged 1 commit into
v4.2.0from
foreman/ml-510
Oct 9, 2026
Merged

mathewtaylor merged 1 commit into
v4.2.0from
foreman/ml-510

Conversation

@mathewtaylor

Copy link
Copy Markdown
Contributor

Closes #597.

BbDataGridExpandColumn and BbDataGridEditColumn hard-coded HeaderClass and CellClass to null, so their cells couldn't be styled to match the other column types. Both now take the two parameters and pass them through. The grid already merges the classes last for these cells, so it needed no change.

  • HeaderClass and CellClass parameters on both columns, with XML docs in the same words as BbDataGridSelectColumn.
  • CellClassFunc is left out. It's per-row data formatting, and the select column doesn't have it either.
  • Demo: a new "Compact Expand and Edit Columns" example, its CodeExamples snippet, and API Reference entries for both columns.
  • API surface snapshot updated: four new parameters, nothing else changed.
  • bUnit test (ControlColumnClassTests) checks that each column's classes land on its header cell and body cell.

@mathewtaylor
mathewtaylor marked this pull request as ready for review October 9, 2026 14:34
@mathewtaylor
mathewtaylor merged commit b424446 into v4.2.0 Oct 9, 2026
1 check passed
@mathewtaylor
mathewtaylor deleted the foreman/ml-510 branch October 9, 2026 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant