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.

Is it possible to add more than one line for a particular DataTable Cell?

See original GitHub issue

Problem Hello, I’ve been using react-native-paper for the past month with satisfying results, but now I am stumbled on a particular use case. I have a DataTable.Cell that needs to show more than one line at a time (imagine a list of food ingredients). Is this possible within the current version?

Approaches I tried to append line breaks without result. I also insert a Text with a numberOfLines attribute set to more than one but nothing happened as well. Inspecting the source code for DataTable.Cell , I found that there is a numberOfLines set to one by default , so I was wondering if that is the cause, because when I change the underlying Text Component on the debugger, it will show appropriately.

imagen

Thanks in advance

Issue Analytics

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

github_iconTop GitHub Comments

5reactions
Trancevercommented, Nov 26, 2020

@jota12x DataTable.Cell is a View with just some styles to make it MD Guidelines compliant, but nothing fancy. If you need to make it multiline then use View instead.

Could you submit a PR adding this information to the DataTable.Cell docs? That would be awesome 🙏

Read more comments on GitHub >

github_iconTop Results From Across the Web

multiple data in single cell — DataTables forums
i need to insert multiple data one below other in single cell of column how to achieve it?
Read more >
Multiple values in the same cell datatable c# - Stack Overflow
These values seem to be seperated by \n. A datatable can only hold one value per cell, you can append the values like...
Read more >
How to add new value (data row) in existing Datatable? - Help
Use add data row with arrow property as {} - ie you are adding a blank row. Use assign add value to the...
Read more >
Data table control in Power Apps - Microsoft Learn
A single row is always selected in a Data table control. Link a Data table control to a connected or local data source....
Read more >
Sizing and Resizing of DataTable, Configuration Webix Docs
There can be more than one fillspace in the datatable. You can set fillspace as a number. The width of the table will...
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