mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 09:22:34 +00:00
MeterGroup docs added
This commit is contained in:
parent
1b19837e16
commit
3aae1bf675
14 changed files with 646 additions and 0 deletions
54
doc/metergroup/MinMaxDoc.vue
Normal file
54
doc/metergroup/MinMaxDoc.vue
Normal file
|
@ -0,0 +1,54 @@
|
|||
<template>
|
||||
<DocSectionText v-bind="$attrs">
|
||||
<p>Boundaries are configured with the <i>min</i> and <i>max</i> values whose defaults are 0 and 100 respectively.</p>
|
||||
</DocSectionText>
|
||||
<div class="card">
|
||||
<MeterGroup :value="value" :min="-50" :max="50" />
|
||||
</div>
|
||||
<DocSectionCode :code="code" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
value: [{ label: 'Space used', value: 15 }],
|
||||
code: {
|
||||
basic: `
|
||||
<MeterGroup :value="value" :min="-50" :max="50" />
|
||||
`,
|
||||
options: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<MeterGroup :value="value" :min="-50" :max="50" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
value: [{ label: 'Space used', value: 15 }],
|
||||
};
|
||||
}
|
||||
};
|
||||
<\/script>
|
||||
`,
|
||||
composition: `
|
||||
<template>
|
||||
<div class="card">
|
||||
<MeterGroup :value="value" :min="-50" :max="50" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref } from "vue";
|
||||
|
||||
const value = ref([{ label: 'Space used', value: 15 }]);
|
||||
<\/script>
|
||||
`
|
||||
}
|
||||
};
|
||||
}
|
||||
};
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue