AllenFang / AllenFang/react-bootstrap-table

Fetch and display data on React bootstrap Table

未关闭
#1,978 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
2.2k
派生
761
PR 合并指标
30 天内没有已合并 PR

描述

Hello guys i am trying to display my data from my api
here my Json response :

{
"id": 1,
"name": "Chicken Wings",
"product_category": {
"name": "Starter"
},
"short_description": "Delicious Chicken Wings",
"image": "http://127.0.0.1:8000/api/meal_images/telechargement.jpeg",
"price": 10
},
{

This is my react component for the table :


ID
Name
Category
Image
Price

but for 'product_category' that display me '{object} {object} , i try to display the name of the product_category , i tried with dataField='product_category.name' but dosen't work how can i access to the name of my product_category table ? Thank you

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。