-
Hello, I am currently working with the I have referred to the documentation on the official website, specifically the section on customization (https://s2.antv.antgroup.com/en/api/general/s2-data-config#fields), which mentions the use of the The current customization options do not seem to allow for the injection of a custom component directly into the header cell, which would enable a complete overhaul of the header content. This limitation restricts the ability to fully customize the appearance and functionality of the header cells in the Could you please provide guidance on how to achieve this level of customization? If this feature is not currently supported, I would like to request the addition of a parameter or method that allows for the integration of custom components within header cells. P.S. But I can understand that it can be full limitation, because render process is happening on the canvas side. And throwing custom components via props and their full rendering with saved custom logic functionality sounds crazy. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
It seems that you are looking to inject custom components into the column header of the Here's what you can do:
If you would like to proceed with a feature request, you can express your need for this feature on the library's GitHub page or discussion forums. This will help the maintainers understand the demand and possibly prioritize it in future updates. If you have any further questions or need assistance with a specific workaround, feel free to ask! 🪧 TipsFor further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me. |
Beta Was this translation helpful? Give feedback.
-
@corocoto Hey there! 👋 I'm not entirely sure what your exact needs are here. If you're trying to customize column header cells, you might want to check out this col-cell customization example. You can achieve custom styling by extending/overriding the col-cell class at 👋 If you're asking about rendering React components inside column header cells, I'd generally advise against mixing DOM elements with Canvas rendering unless absolutely necessary. This approach might lead to unexpected issues like:
But if you must render DOM elements in headers, check out AntV's HTML Custom Node docs. If this isn't what you're looking for, could you:
That'll help me give more targeted suggestions! 🔍 |
Beta Was this translation helpful? Give feedback.
@corocoto Hey there! 👋 I'm not entirely sure what your exact needs are here. If you're trying to customize column header cells, you might want to check out this col-cell customization example. You can achieve custom styling by extending/overriding the col-cell class at
packages/s2-core/src/cell/col-cell.ts
.👋 If you're asking about rendering React components inside column header cells, I'd generally advise against mixing DOM elements with Canvas rendering unless absolutely necessary. This approach might lead to unexpected issues like:
But if you must rend…