Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set cell metadata in bulk #2769

Closed
JacobEvelyn opened this issue Aug 27, 2015 · 1 comment
Closed

Set cell metadata in bulk #2769

JacobEvelyn opened this issue Aug 27, 2015 · 1 comment

Comments

@JacobEvelyn
Copy link

Our server sends down an array of data and a corresponding array of cell metadata. Setting cell metadata for all cells is a cumbersome process right now. We have to:

  1. Load all the data for the table (we do this via updateSettings, but the mechanism shouldn't matter). This triggers a table render.
  2. Manually loop through all cells and use the setCellMeta method.
  3. Manually trigger another table render (since for us, metadata influences how cells should be rendered with our custom renderer) with hot.render().

Ideally, we would be able to do this:

hot.updateSettings({
  data: data, // This is a 2D array.
  meta: metadata // This is a 2D array.
});

Does that sound possible? Is there another way to accomplish this?

@AMBudnik
Copy link
Contributor

Only thing I can think of is 'cell' both ways are good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants