primevue-mirror/apps/showcase/doc/ripple/ConfigurationDoc.vue

35 lines
733 B
Vue
Raw Normal View History

2023-02-28 08:29:30 +00:00
<template>
<DocSectionText v-bind="$attrs">
2023-03-02 13:17:19 +00:00
<p>To start with, Ripple needs to be enabled globally. See the <NuxtLink to="/configuration/#ripple">Configuration API</NuxtLink> for details.</p>
2023-02-28 08:29:30 +00:00
</DocSectionText>
2024-01-30 08:16:35 +00:00
<DocSectionCode :code="code" importCode hideStackBlitz />
2023-02-28 08:29:30 +00:00
</template>
<script>
export default {
data() {
return {
code: {
basic: `
mounted() {
this.$primevue.config.ripple = true;
2023-09-26 12:14:16 +00:00
}
`,
2023-02-28 08:29:30 +00:00
options: `
mounted() {
this.$primevue.config.ripple = true;
2023-10-15 09:38:39 +00:00
}
`,
2023-02-28 08:29:30 +00:00
composition: `
import { usePrimeVue } from 'primevue/config';
const PrimeVue = usePrimeVue();
2023-10-26 07:41:27 +00:00
PrimeVue.config.ripple = true;
`
2023-02-28 08:29:30 +00:00
}
};
}
};
</script>