Skip to content
Discussion options

You must be logged in to vote

Hi @islittlezhou ,

Yes, a custom row height feature is now available. It is not a separate plugin, but a built-in feature added recently in PR #1235.
You can use it by setting enableVariableRowHeight: true in your grid options. Then, you can control the height of each row individually.

There are two easy ways to do this:

  • Using a rowHeightProvider function: You write a function that returns a height (in pixels) for a specific row.
  • Using ItemMetadata.height: If your data already uses metadata (for styling, etc.), you can add a height property to it. The grid will read it automatically.

You can see a working example in the file example-variable-row-height.html in the repository. It shows b…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ghiscoding
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants