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.

Ability to set Table 'No Data' string

See original GitHub issue

What problem does this feature solve?

According to the documentation, I don’t see any properties on table that would let me override the message when the table has no or empty data set. Currently it defaults to a “frownie face” icon with the no data in Chinese

What does the proposed API look like?

<Table noDataContent="No Rows found" />

Issue Analytics

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

github_iconTop GitHub Comments

93reactions
afc163commented, Sep 21, 2017

<Table locale={{ emptyText: 'xxx' }} />

51reactions
shinycommented, Dec 10, 2018

How to display images when the table content is empty?

<Table
  locale={{ emptyText: (<span>
    暂无订单数据
    <Button>do something</Button>
    <img src="https://www.baidu.com/img/bd_logo1.png" />
    </span>)
   }} />
Read more comments on GitHub >

github_iconTop Results From Across the Web

Antd UI library. Overriding <Table /> behavior on empty data
Currently its just showing 'No data' , but I want to put some custom component there. Current default behavior on empty data property....
Read more >
Empty - Ant Design
Empty state placeholder. When To Use. When there is no data provided, display for friendly tips. User tutorial to create something in fresh...
Read more >
Show items with no data in Power BI - Microsoft Learn
Learn how Power BI behaves when determining relevant data, and how it handles and displays items with no data.
Read more >
Chapter 3. Data, Tables, and Database Design - O'Reilly
If you stored them in the customers table, you'd have to create fields such as Cust_Order1, Cust_Order2, Cust_Order3, and so on, ad infinitum....
Read more >
How to Use Tables (The Java™ Tutorials > Creating a GUI ...
getFirstRow(); int column = e.getColumn(); TableModel model = (TableModel)e.getSource(); String columnName = model.getColumnName(column); Object data = model.
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