primevue-mirror/doc/ripple/ConfigurationDoc.vue

32 lines
746 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>
2023-02-28 17:40:48 +00:00
<DocSectionCode :code="code" importCode hideCodeSandbox hideStackBlitz />
2023-02-28 08:29:30 +00:00
</template>
<script>
export default {
data() {
return {
code: {
basic: `
mounted() {
this.$primevue.config.ripple = true;
}`,
options: `
mounted() {
this.$primevue.config.ripple = true;
}`,
composition: `
import { usePrimeVue } from 'primevue/config';
const PrimeVue = usePrimeVue();
PrimeVue.config.ripple = true;`
}
};
}
};
</script>