Params
When you open a modal though the API $vfm.show(name, params)
.
params
:
You have two ways to get scoped-slot
Use <template v-slot="{ params }">
<!-- modal content -->
</template>
@beforeOpen
event
On <vue-final-modal @before-open="event => event.ref.params">
<!-- modal content -->
</vue-final-modal>
params
will be reset to
{}
automatically after
closed
event. You can prevent the modal from resetting the
params
to an empty object by calling
event.stop()
.