primevue-mirror/doc/tristatecheckbox/FilledDoc.vue

55 lines
1.0 KiB
Vue
Raw Normal View History

2024-02-02 11:49:09 +00:00
<template>
<DocSectionText v-bind="$attrs">
<p>A model can be bound using the standard v-model directive.</p>
</DocSectionText>
<div class="card flex flex-column align-items-center">
<TriStateCheckbox v-model="value" variant="filled" />
</div>
<DocSectionCode :code="code" />
</template>
<script>
export default {
data() {
return {
value: null,
code: {
basic: `
<TriStateCheckbox v-model="value" />
`,
options: `
<template>
<div class="card flex align-items-center">
<TriStateCheckbox v-model="value" variant="filled" />
</div>
</template>
<script>
export default {
data() {
return {
value: null
}
}
}
<\/script>
`,
composition: `
<template>
<div class="card flex align-items-center">
<TriStateCheckbox v-model="value" variant="filled" />
</div>
</template>
<script setup>
import { ref } from 'vue';
const value = ref(null);
<\/script>
`
}
};
}
};
</script>