You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As the title mentioned, when I have a table and the columns not only contains the left frozen columns, but also the right frozen columns, because I want to merge some columns in header, like this example https://autodesk.github.io/react-base-table/examples/multi-header, so I need implement the callback headerRenderer, but this callback will be called 3 times, and there is no indicator which is left table main table, and right table, in user's (developer who use this component) view, I think this function will be called one time only, because there is only one header.
The text was updated successfully, but these errors were encountered:
That's a good question, as internally there are 3 tables to implement the column frozen feature, so it would be called 3 times, not sure what kind of feature you want to implement, but I'd say it's easy to determine which table is calling it and it's intended not passing it to the callback, maybe I would add it if it's really needed, I just don't want to bloat the API, for example you could just check the first column from columns if it's frozen and which direction it is, and you will know which table is calling the renderer
In my practice, I always take those tables as the same, and don't care about which table is calling the renderer, I guess you want implement something like column groups? I could share with a screenshot of the advanced table component we are using internally which is built on BaseTable with much more features, including grouping, selection, columns settings, columns reordering and column groups
As the title mentioned, when I have a table and the columns not only contains the left frozen columns, but also the right frozen columns, because I want to merge some columns in header, like this example https://autodesk.github.io/react-base-table/examples/multi-header, so I need implement the callback
headerRenderer
, but this callback will be called 3 times, and there is no indicator which is left table main table, and right table, in user's (developer who use this component) view, I think this function will be called one time only, because there is only one header.The text was updated successfully, but these errors were encountered: