primevue-mirror/doc/toast/ToastServiceDoc.vue

25 lines
625 B
Vue
Raw Normal View History

2023-03-03 14:04:59 +00:00
//TODO:
2023-02-28 08:29:30 +00:00
<template>
<DocSectionText v-bind="$attrs">
<p>Toast messages are dynamically created using a <i>ToastService</i> that needs to be installed globally before the application instance is created.</p>
</DocSectionText>
2023-02-28 17:40:48 +00:00
<DocSectionCode :code="code" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
2023-02-28 08:29:30 +00:00
</template>
<script>
export default {
data() {
return {
code: {
basic: `
import {createApp} from 'vue';
import ToastService from 'primevue/toastservice';
const app = createApp(App);
app.use(ToastService);`
}
};
}
};
</script>