-
The row heights can be changed in the UI with the mouse. I would appreciate if there was an API to change the row heights programmatically as well. It would then be possible to use other form elements (with larger height than a normal text cell) inside the cells. |
Beta Was this translation helpful? Give feedback.
Answered by
adidahiya
Oct 28, 2022
Replies: 1 comment
-
@andreash there are const tableRef = React.createRef<Table2>();
React.useLayoutEffect(() => {
tableRef.current?.resizeRowsByTallestCell();
}, []);
return (
<Table2 ref={tableRef} {...otherProps} />
); Docs here: https://blueprintjs.com/docs/#table/api.instance-methods |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
adidahiya
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@andreash there are
<Table>
and<Table2>
component instance methods to resize rows based on the content in each cell, try them out with something like this:Docs here: https://blueprintjs.com/docs/#table/api.instance-methods