Skip to content

Recommended way to passing in params to the modal #28

@ul8

Description

@ul8

Is your feature request related to a problem? Please describe.

I frequently call modals from various places and usually pass in some params that modify what is displayed in the modal content.

vue-js-modal's show() method contains an optional params argument, which can be used for this purpose.

In vue-final-modal, there is no such parameter. What is the recommended solution you use for this? Passing props to a higher order component? I wouldn't like that much as it result in a lot of extra bindings and calls in the component that is using the higher order component.

Describe the solution you'd like

Adding params to the show() function and including those values in the @before-open event is a tried and tested solution, but maybe you have other ideas.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions