Skip to content

Commit

Permalink
Merge pull request #134 from vuetifyjs/example/inline-checkbox
Browse files Browse the repository at this point in the history
add inline checkbox example
  • Loading branch information
hymair authored and KaelWD committed Oct 28, 2018
1 parent 9fe88a1 commit 3dd1f57
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<template>
<v-card>
<v-card-text>
<v-container fluid grid-list-md>
<v-layout align-center>
<v-flex class="shrink">
<v-checkbox
v-model="ex5"
hide-details
></v-checkbox>
</v-flex>
<v-flex>
<v-text-field label="Include files"></v-text-field>
</v-flex>
</v-layout>
<v-layout align-center>
<v-flex class="shrink">
<v-checkbox
v-model="ex6"
hide-details
></v-checkbox>
</v-flex>
<v-flex>
<v-text-field
label="I only work if you check the box"
:disabled="!ex6"
></v-text-field>
</v-flex>
</v-layout>
</v-container>
</v-card-text>
</v-card>
</template>

<script>
export default {
data () {
return {
ex5: true,
ex6: false
}
}
}
</script>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default {
header: 'Selection controls',
headerText: 'Selection control components allow a user to select options. These components **must** be used with the <code>v-model</code> prop as they do not maintain their own state.',
headerText: 'Selection control components allow a user to select options. These components **must** be used with the `v-model` prop as they do not maintain their own state.',
components: ['v-radio-group', 'v-radio', 'v-checkbox', 'v-switch'],
examples: [{
example: {
Expand All @@ -23,6 +23,10 @@ export default {
header: "Checkboxes - Colors",
desc: 'Checkboxes can be colored by using any of the builtin colors and contextual names using the color prop.'
},
checkboxesInlineTexfield: {
header: "Checkboxes - Inline with a textfield",
desc: ''
},
radiosDefault: {
header: "Radios - Default",
desc: 'Radio-groups are by default mandatory. This can be changed with the <code>mandatory</code> prop.'
Expand Down

0 comments on commit 3dd1f57

Please sign in to comment.