Is it possible to show/hide tabs depending on a condition?

default discord avatar
9 months ago
2 1

Currently, according to the type definition, a tab should support the admin property, but it get's ignored and I couldn't find it in the documentation.

I'm trying to build a table block, that allows the creation of tables.

My idea was the following:
Specify a numberOfColumns field that allows numbers between 2 and 10.
Depending on that number, 2-10 tabs would show up below for each "row" in an array of "rows" to allow filling the cells.

Is this possible? Do you have any other ideas how to realise a table block with the given fields or what a custom component would look like to achieve this?


Open the post
Continue the discussion in GitHub
Like what we're doing?
Star us on GitHub!


Connect with the Payload Community on Discord



Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.