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.

Table data into 1 column

See original GitHub issue

This is more of a question then an issue, because I don’t know how to do it. I have the following data:

const data = ['one', 'two', 'three'];

and I want two and three into one column on the table:

   <Table
        cells={[
          'number one',
          { title: 'two and three' },
        ]}
        rows={data}
      >
        <TableHeader />
        <TableBody />
    </Table>

I see that the ICell type also has props?: any; and data?: any; but now idea how they would could / should be used.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
edewitcommented, Sep 25, 2020

@josejulio that is exactly what I need, I feel stupid for not thinking of this! I was thinking I need to keep the data as is and do the formatting in the table component. Your version is so elegant thanks.

0reactions
josejuliocommented, Sep 25, 2020

You’re welcome. I’m glad I could help 😄.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Turn A Table Into A Column Using Formulas
This post will explore how you can transform a table of values into a single column using the INDEX function. Get your copy...
Read more >
How to transpose / convert columns and rows into single ...
How to transpose / convert columns and rows into single column? · 1. Select the cross table you want to convert to list,...
Read more >
How can I convert an Excel table into a single column
1. Make a backup of your workbook. · 2. Open your workbook and ALT+F11 · 3. Locate your Workbook name in Project Explorer...
Read more >
Merging data from multiple tables into a single column - IBM
You can merge data from two or more tables into a single column on a report by using the keyword UNION.
Read more >
How to convert a matrix to a single column using Excel
6 Answers 6 · Select your matrix · Go through the Get & Transform section in the Data tab and click From Table/Range...
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