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

Make it possible to pass arguments to partials #325

Merged
merged 8 commits into from
Mar 24, 2025
Merged

Conversation

johanmolen
Copy link
Contributor

@johanmolen johanmolen commented Mar 13, 2025

This way you can dynamically set the field name for example.

Examples:

->addPartials([
    Example::class => ['test' => 'value'],
    Whatever::class,
    Another::class => ['another' => 'value'],
])
->addPartial(IconSelect::class, [
    'field_name' => 'usp_icon',
])

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.

Verified

This commit was signed with the committer’s verified signature.
johanmolen Johan van der Molen
@johanmolen johanmolen changed the title wip: Make it possible to pass arguments to partials Make it possible to pass arguments to partials Mar 13, 2025

Verified

This commit was signed with the committer’s verified signature.
johanmolen Johan van der Molen
@Log1x Log1x merged commit 9f8350b into Log1x:master Mar 24, 2025
2 checks passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants