primevue-mirror/doc/ripple/ConfigurationDoc.vue

35 lines
749 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;
2023-09-26 12:14:16 +00:00
}
2023-10-15 09:38:39 +00:00
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();
PrimeVue.config.ripple = true;`
}
};
}
};
</script>