dataField can't access subobject
See original GitHub issueI have an object which is like that
{
"person_id": 1,
"username": "UserTest",
"created_at": "2015-09-10T21:13:56.000Z",
"updated_at": "2015-09-10T21:13:56.000Z",
"deleted_at": null,
"Person": {
"id": 1,
"firstname": "UserTest",
"lastname": "Obama",
"note": "DevOps",
"email": "iam@obama.com",
"created_at": "2015-09-10T21:13:56.000Z",
"updated_at": "2015-09-10T21:13:56.000Z",
"deleted_at": null
}
}
I can’t access the subojbect using
<TableHeaderColumn dataField="Person.firstname">Firstname</TableHeaderColumn>
Is there any workaround not specified in the doc ?
Issue Analytics
- State:
- Created 8 years ago
- Reactions:25
- Comments:51 (9 by maintainers)
Top Results From Across the Web
react-bootstrap-table can't access sub object - Stack Overflow
When I try to access property {manufacturer.name} in my table data field, it doesn't show anything on the screen. <BootstrapTable data={features} ...
Read more >List sub object sorting and grouping issues - Telerik Forums
I am creating a grid programmatically within a page. The datasource is an object list in which the objects contain lists as sub-objects....
Read more >Access property in child object from the GridView control ...
I am running into a small issue... In my gridview I would like to display the InventoryItem.Rack.RackName property but it says that it...
Read more >SQL and Array Data - InfoWorks ICM - Innovyze
The most obvious one is the Bends data field, which stores the intermediate (x,y) pairs that ... Again you cannot access individual values...
Read more >Optional data field's mapping - jQWidgets
We cannot reproduce a problem with this version of jQWidgets. ... simple test will stop trying to get property if any sub-object is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
sorry guys, as I mention on README, I already decide to create
react-bootstrap-table2
, I trust it will be better thanreact-bootstrap-table
. A good news is I’ll support the nested data inreact-bootstrap-table2
start fromv0.0.1
, bad news is I will not support the nested data inreact-bootstrap-table
.Feel free to let me know your idea and any idea/issues is welcome on
react-bootstrap-table2
Sorry for inconvenience.
I’m using lodash’s
_.get
lib to achieve this.