Comments (1)
Just confirmed the issue and parseHeader()
called by the parseDataForColumns()
is responsible for this behaviour:
Received
{
key: 'last_1k_p99_requests',
text: 'Last K P Requests',
invisible: false,
sortable: true,
filterable: true
}
Expected
{
key: 'last_1k_p99_requests',
text: 'Last 1K P99 Requests',
invisible: false,
sortable: true,
filterable: true
}
I'll work on this and also add it as a sample in the tests, should be resolved in the next release v0.7.4
.
Prior to this, a workaround can be to pass a custom headers
object:
const myData = [{ last_1k_p99_requests: 1000 }]
const MyComponent = () => (
<SmartDataTable
data={myData}
headers={{ last_1k_p99_requests: { text: 'Last 1K P99 Requests' } }}
/>
)
from react-smart-data-table.
Related Issues (20)
- Failed to compile HOT 6
- How to view 'No records available' as a row if data object is empty ? HOT 1
- Something went wrong ! SyntaxError: unterminated character class HOT 1
- Pagination customization/localization HOT 4
- Column ordering HOT 2
- Can't deploy to production with yarn build HOT 1
- Custom headers not working HOT 4
- Not fully compatible with Semantic UI's Pagination component HOT 2
- Not displaying all the fields HOT 16
- Not paginating properly HOT 1
- Displaying duplicate columns when using 'header' props HOT 2
- Hide the paginator if the results per page were less than the perPage prop HOT 2
- Enhancement: Columns selector HOT 2
- "ReferenceError: self is not defined" when using blitz HOT 3
- Adding row double click HOT 1
- Pagination and activePage prop HOT 4
- Individual Column alignment HOT 3
- save the column width, sorts and filters HOT 1
- Give styles to specific row
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-smart-data-table.