Skip to content

[add] HTML content in a Layout cell header - #154

Open
mafanya23 wants to merge 2 commits into
9.4from
mr-displaying-html-in-layout-cell-header-4153
Open

mafanya23 wants to merge 2 commits into
9.4from
mr-displaying-html-in-layout-cell-header-4153

Conversation

@mafanya23

@mafanya23 mafanya23 commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

В рамках задачи обновлена структура гайда Configuration of a Cell. Новые разделы, которые нужно проверить в обновлённом гайде, указаны в комментариях к файлу

- header config extended with a callback returning an HTML string or a widget
- API page migrated to Usage/Example sections with the ts signature
- guide section with subsections on markup, widgets, events and collapsing
- v9.4 changelog entry, new snippets and readable related links
@mafanya23 mafanya23 self-assigned this Sep 17, 2026
- intro paragraph, header height nested under the cell header section
- sizing, visibility and collapsing sections regrouped
- custom header collapsing moved to the collapsibility section
- explicit backticked labels for api links, jsx fences on the page
- readable related links on the headerIcon and headerImage pages,
  with the broken layout/api paths and the #cellheader anchor fixed
- header page: callback parameter described in its own list item,
  examples split per case, attach() added to the related api list
# Configuration of a Cell

Each cell of a layout takes a configuration object that defines what the cell shows and how it behaves. The properties of this object set the content and the header of a cell, its size and borders, and the ability of a user to collapse, hide or resize the cell. The sections below go through these settings one by one, while the full list of the available properties is in the [Cell API](layout/api/api_overview.md#cell-api) overview.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

добавлено интро в гайд

If the [](layout/api/cell/layout_cell_header_config.md) property is not set in the config of a cell, the [](layout/api/cell/layout_cell_headerheight_config.md) option will add a header without text for a cell.
If the [`header`](layout/api/cell/layout_cell_header_config.md) property is not set in the config of a cell, the [`headerHeight`](layout/api/cell/layout_cell_headerheight_config.md) option will add a header without text for a cell.

## Custom content in a cell header

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

новый раздел здесь

~~~

**Related sample**: [Layout. Collapsable and resizable](https://snippet.dhtmlx.com/f1f49n35)
A [`collapsable`](layout/api/cell/layout_cell_collapsable_config.md) cell keeps its collapse/expand icon when the header contains custom content. A click on the custom content itself calls no API of the cell, so buttons and other controls inside the header remain operable. A user collapses and expands the cell by clicking the collapse icon or the free space of the header.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

новый параграф о collapse/expand icon для кастомного контента в хедере ячейки

@mafanya23
mafanya23 requested review from Sorokin-Oleg and serhiipylypchuk1991 and removed request for serhiipylypchuk1991 September 17, 2026 09:28
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