2022-09-09 20:41:18 +00:00
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<div class="content-section introduction">
|
|
|
|
<div class="feature-intro">
|
|
|
|
<h1>TriStateCheckbox</h1>
|
|
|
|
<p>TriStateCheckbox is used to select either "true", "false" or "null" as the value.</p>
|
|
|
|
</div>
|
|
|
|
<AppDemoActions />
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="content-section implementation">
|
|
|
|
<div class="card">
|
|
|
|
<div class="field-checkbox m-0">
|
2022-12-08 12:26:57 +00:00
|
|
|
<TriStateCheckbox v-model="value" inputId="checkbox" />
|
2022-09-09 20:41:18 +00:00
|
|
|
<label for="checkbox">{{ value == null ? 'null' : value }}</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<TriStateCheckboxDoc />
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import TriStateCheckboxDoc from './TriStateCheckboxDoc';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
value: null
|
|
|
|
};
|
|
|
|
},
|
|
|
|
components: {
|
|
|
|
TriStateCheckboxDoc: TriStateCheckboxDoc
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|