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

Not working on backpack 6.x #15

Open
Raimundas7 opened this issue Feb 4, 2024 · 1 comment
Open

Not working on backpack 6.x #15

Raimundas7 opened this issue Feb 4, 2024 · 1 comment

Comments

@Raimundas7
Copy link

Hello, how to enable this work on backpack 6.x version?

@GANFI
Copy link

GANFI commented Jun 18, 2024

You can pass viewNamespace param with value backpack::widgets

This is example of code

Widget::add([
            'type'           => 'relation_panel',
            'viewNamespace'  => 'backpack::widgets',
            'name'           => 'information',
            'label'          => 'Shipping info',
            'buttons' => false,
            'fields'         => [
                [
                    'label' => 'First name',
                    'name' => 'first_name'
                ],
                [
                    'label' => 'Last name',
                    'name'  => 'last_name',
                ],
                [
                    'label' => 'Shipping address',
                    'name'  => 'shippingAddress',
                ],
            ],
        ])->to('after_content');

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

2 participants