AllenFang / AllenFang/react-bootstrap-table

Fetch and display data on React bootstrap Table

オープン
#1,978 コメント 2 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。