vue3
How do you dynamically transfer data when you click on bootstrap-Modal,It's not written v-on.(v-8.0.37)
<button
type="button"
class="btn btn-primary"
data-bs-toggle="modal"
data-bs-target="#kt_modal_add_menu"
>
<span class="svg-icon svg-icon-2">
<inline-svg src="media/icons/duotone/Navigation/Plus.svg" />
</span>
Add
</button>
<add-menu-modal
@update="updataFn"
ref="kt_modal_add_menu"
/>
<script lang="ts" setup>
import { onMounted, reactive, ref } from "vue";
import AddMenuModal from "./components/AddMenuModal.vue";
const kt_modal_add_menu = ref<null | HTMLFormElement>(null);
</script>
Replies (3)
Hi!
You can easily pass your data to modal through props.
You can read more about the component props in Vue 3 doc:
https://vuejs.org/guide/components/props.html
I'm sorry that my English is poor and my expression is not clear enough.It's not the way I wanted it, but thank you very much.
Hi,
If you have any additional questions let me know.
Your Support Matters!
We will highly appreciate your Metronic Review on Themeforest.
Please go to Themeforest Downloads page, select Metronic & leave your feedback.