question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Have extra fields in Row of Datatable.

See original GitHub issue

What package(s) are you using?

  • carbon-components
  • carbon-components-react

Summary

I am trying to use the datatable component.

What I want to have is to have access to row content that is not being shown to the screen.

For example.

row = [a,b,c,d,e]

header = [a, b, c]

so only a b c show up as cell.

but in selectedRow prop I would like to have access to d or e, which are metadata useful for me but not useful for the user to see.

Is this possible in an easy way?

Relevant information

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
dakahncommented, Jan 31, 2020

Our table is only responsible for rendering what it’s given; have you tried to do a lookup with the row ID to get to that metadata info you want?

0reactions
tw15egancommented, Mar 10, 2020

Thanks for the update and glad you’ve got it working 🎉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Child rows (show extra / detailed information) - DataTables
This can be used to show additional information about a row, useful for cases where you wish to convey more information about a...
Read more >
How to add extra field in datatable which is not database
I am trying to add edit and delete button in data table. I have html <table id="example" class ...
Read more >
Ignoring the Extra Columns/Rows during the Data Scrapping ...
First scrape the entire Table from web page using Data Scraping and will give output as DataTable. Let's say 'InputDT'. And then try...
Read more >
Resize a table by adding or removing rows and columns
Learn how to add rows and columns to an Excel table. ... of cells you want your table to include, starting with the...
Read more >
FlexCards Datatable Properties - Salesforce Help
With the Datatable element, display a tabular structure of the data fetched from a data ... Enable to fire a delete custom event...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found