primevue-mirror/doc/ripple/ConfigurationDoc.vue

32 lines
729 B
Vue
Raw Normal View History

2023-02-28 08:29:30 +00:00
<template>
<DocSectionText v-bind="$attrs">
<p>To start with, Ripple needs to be enabled globally. See the <nuxt-link to="/ripple">Configuration API</nuxt-link> for details.</p>
</DocSectionText>
<DocSectionCode :code="code" import hideCodeSandbox hideStackBlitz />
</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>