You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've created a resource for it with the --simple flag of the command, and I now have a Resource class, and the corresponding List and View classes. I want to be able to view many kinds of data about these posts, so I've overridden the getTabs() function of the List class, and configured my tabs. In the tabs, I have the option to modify the query used for the different tabs, which turns them into something like a set of filter presets, but I need to do more.
What I'd need is for each tab to show a different set of columns. For example, all tabs should show an ID, and Title, but only the engagement tab should show how many click/likes/comments there are on the post, and only content tab should show a snippet of the content itself.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Let's say I have a resource, called
Post
I've created a resource for it with the
--simple
flag of the command, and I now have aResource
class, and the correspondingList
andView
classes. I want to be able to view many kinds of data about these posts, so I've overridden thegetTabs()
function of theList
class, and configured my tabs. In the tabs, I have the option to modify the query used for the different tabs, which turns them into something like a set of filter presets, but I need to do more.What I'd need is for each tab to show a different set of columns. For example, all tabs should show an ID, and Title, but only the
engagement
tab should show how many click/likes/comments there are on the post, and onlycontent
tab should show a snippet of the content itself.In terms of code, I'd like something like this:
Beta Was this translation helpful? Give feedback.
All reactions