Params

When you open a modal though the API $vfm.show(name, params).

You have two ways to get params:

Use scoped-slot

<template v-slot="{ params }">
  <!-- modal content -->
</template>

On @beforeOpen event

<vue-final-modal @beforeOpen="event => event.ref.params">
  <!-- modal content -->
</vue-final-modal>
params will be reset to {} automatically after closed event. You can avoid the modal to reset the params to empty object by calling event.stop() .
Edit this page on GitHub Updated at Fri, Jun 25, 2021