Nested Show Element In React-Admin
up vote
0
down vote
favorite
I'm using react-admin to try display some data.
I have a data structure like :
{
retailerName: retailerName
stores: [
{
storeName: storeName
products: [
{
productName: productName
productQuantity: productQuantity
}
]
}
{
storeName: storeName
products: [
{
productName: productName
productQuantity: productQuantity
}
]
}
]
}
And so far I've created a resource that displays the retailer and store count, when clicked in then shows more detailed information about all the stores under that retailer.
Now I want to be able to click those stores and show all the products inside those stores but I can't figure out a way to do this.
Any help would be appreciated.
javascript reactjs data-structures react-admin
New contributor
add a comment |
up vote
0
down vote
favorite
I'm using react-admin to try display some data.
I have a data structure like :
{
retailerName: retailerName
stores: [
{
storeName: storeName
products: [
{
productName: productName
productQuantity: productQuantity
}
]
}
{
storeName: storeName
products: [
{
productName: productName
productQuantity: productQuantity
}
]
}
]
}
And so far I've created a resource that displays the retailer and store count, when clicked in then shows more detailed information about all the stores under that retailer.
Now I want to be able to click those stores and show all the products inside those stores but I can't figure out a way to do this.
Any help would be appreciated.
javascript reactjs data-structures react-admin
New contributor
Not sure if this would help, but model composition may be useful, aka, nested object models.
– Sid
2 days ago
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm using react-admin to try display some data.
I have a data structure like :
{
retailerName: retailerName
stores: [
{
storeName: storeName
products: [
{
productName: productName
productQuantity: productQuantity
}
]
}
{
storeName: storeName
products: [
{
productName: productName
productQuantity: productQuantity
}
]
}
]
}
And so far I've created a resource that displays the retailer and store count, when clicked in then shows more detailed information about all the stores under that retailer.
Now I want to be able to click those stores and show all the products inside those stores but I can't figure out a way to do this.
Any help would be appreciated.
javascript reactjs data-structures react-admin
New contributor
I'm using react-admin to try display some data.
I have a data structure like :
{
retailerName: retailerName
stores: [
{
storeName: storeName
products: [
{
productName: productName
productQuantity: productQuantity
}
]
}
{
storeName: storeName
products: [
{
productName: productName
productQuantity: productQuantity
}
]
}
]
}
And so far I've created a resource that displays the retailer and store count, when clicked in then shows more detailed information about all the stores under that retailer.
Now I want to be able to click those stores and show all the products inside those stores but I can't figure out a way to do this.
Any help would be appreciated.
javascript reactjs data-structures react-admin
javascript reactjs data-structures react-admin
New contributor
New contributor
edited 2 days ago
New contributor
asked 2 days ago
Josh Jenkins
13
13
New contributor
New contributor
Not sure if this would help, but model composition may be useful, aka, nested object models.
– Sid
2 days ago
add a comment |
Not sure if this would help, but model composition may be useful, aka, nested object models.
– Sid
2 days ago
Not sure if this would help, but model composition may be useful, aka, nested object models.
– Sid
2 days ago
Not sure if this would help, but model composition may be useful, aka, nested object models.
– Sid
2 days ago
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Josh Jenkins is a new contributor. Be nice, and check out our Code of Conduct.
Josh Jenkins is a new contributor. Be nice, and check out our Code of Conduct.
Josh Jenkins is a new contributor. Be nice, and check out our Code of Conduct.
Josh Jenkins is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53238488%2fnested-show-element-in-react-admin%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Not sure if this would help, but model composition may be useful, aka, nested object models.
– Sid
2 days ago