Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question - Use of Panels inside Tabs #290

Open
atalavera-sellboost opened this issue Jun 28, 2023 · 4 comments
Open

Question - Use of Panels inside Tabs #290

atalavera-sellboost opened this issue Jun 28, 2023 · 4 comments

Comments

@atalavera-sellboost
Copy link

I'm using version 1.4.6. (1.5.1 don't work at all with my Nova 2.12.0, don't know why).

I have a big resource with a lot of Nova Panels to group fields.

I tried to group some panels inside one Tab, but it seems that isn't possible or I'm doing something wrong because each Nova Panel is considered like another new Tab.

            return [
                new Tabs(__('Project details'), [
                    Tab::make('Balance1', [
                        new Panel('Balance2', [
                            Number::make('Balance3', 'balance'),
                            Number::make('Total4', 'total'),
                        ]),
                        new Panel('Other Info5', [
                            Number::make('Paid To Date6', 'paid_to_date')
                        ]),
                    ]),
                    Tab::make('Other Info 7', [
                        Number::make('Paid To Date 8', 'paid_to_date')
                    ]),
                ]),
            ];

image

The result I was expecting was having a "Balance 1 tab" with Panel "Balance2" first and Panel "OtherI Info5" after.

Then "Other Info 7" tab next to "Balance 1 tab".

@oujonny
Copy link

oujonny commented Feb 23, 2024

any updates? I face the same issue and would love to use panels inside tabs.

@benedict-w
Copy link

+1

@puzzledmonkey
Copy link
Contributor

+2

@DMidDeloitte
Copy link

Just to add for anybody that visits this question. I don't think it is possible to put Panels inside Tabs/Tab.

I don't presume to know the inner workings of the Tabs/Tab fields, but the Tabs class extends from the Panel class.

So, in theory, you are trying to put a Panel inside a Panel, which Nova already does not allow.

Examples:

image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants