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

using belongs to selection inside the container #204

Open
mahmoudsharf-eldin opened this issue Apr 5, 2022 · 1 comment
Open

using belongs to selection inside the container #204

mahmoudsharf-eldin opened this issue Apr 5, 2022 · 1 comment
Labels
more info required More information is required

Comments

@mahmoudsharf-eldin
Copy link

I have a dynamic container which fields come from function depending on the selection from belongs to field,
how could i use this selection inside container and pass it to function ?

BelongsTo::make('Type','type',Type::class),
            NovaDependencyContainer::make([
                Select::make(__('Language'),'language')
                    ->options($languages)
                    ->displayUsingLabels(),
                NovaDependencyContainer::make(
                        **$this->pageFields( 'type_id','language_id')**
                    )->withMeta([
                    'dependencies' => [
                        ['field' => 'language', 'property' => 'language', 'notEmpty' => true],
                    ],
                ]),
            ])->withMeta([
                'dependencies' => [
                    ['field' => 'type', 'property' => 'type', 'notEmpty' => true],
                ],
            ]),
@NoahNxT NoahNxT added the more info required More information is required label Dec 4, 2022
@NoahNxT
Copy link
Contributor

NoahNxT commented Dec 4, 2022

Could you give us a more detailed explanation of your issue? Can't make anything of it for now 😞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more info required More information is required
Projects
None yet
Development

No branches or pull requests

2 participants