Display basic notifications using Notification methods
Use the global
$notification object to trigger notifications. You can call specific methods based on the notification type: .info(), .success(), .warning(), and .error(). Notifications can be triggered by passing a simple string as the content.<template>
<i-button @click="() => this.$notification.info('This is an info notification')">Info</i-button>
<i-button @click="() => this.$notification.success('This is a success notification')">Success</i-button>
<i-button @click="() => this.$notification.warning('This is a warning notification')">Warning</i-button>
<i-button @click="() => this.$notification.error('This is an error notification')">Error</i-button>
</template>