AllenFang / AllenFang/react-bootstrap-table

Fetch and display data on React bootstrap Table

Abierto
#1,978 2 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
2.2k
Forks
761
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.