To call a method of a component from a button or other object placed inside the component to be controlled, specify method name=component to be controlled.
Bootstrap11 mins ago
Hello, world! This is a toast message.
vue
<template>
<Toast show>
<ToastHeader>
<b-img
src="https://dummyimage.com/20x20/007aff/007aff"
rounded
margin="e-2"
alt="Card image cap"
/>
<strong class="me-auto">Bootstrap</strong>
<small>11 mins ago</small>
<CloseButton dismiss="toast" />
</ToastHeader>
<ToastBody>Hello, world! This is a toast message.</ToastBody>
</Toast>
</template>
From external components
To call a method of a controlled component from a button or other object placed outside of the controlled component
Set the ID to the component to be controlled, and specify target=#{id} and method name=target component for buttons, etc.