vue-material/src/docs/pages/Checkbox.vue

48 lines
1.1 KiB
Vue
Raw Normal View History

2016-08-31 23:22:36 +00:00
<template>
<section>
<h2 class="title">Checkbox</h2>
<div>
2016-09-06 01:03:25 +00:00
<md-checkbox id="my-test0" name="my-test0" v-model="checkbox">My beautiful checkbox</md-checkbox>
2016-08-31 23:22:36 +00:00
</div>
<div v-md-theme="'indigo'">
2016-09-06 01:03:25 +00:00
<md-checkbox id="my-test1" name="my-test1" v-model="checkbox">Themed</md-checkbox>
2016-08-31 23:22:36 +00:00
</div>
<div v-md-theme="'blue'">
2016-09-06 01:03:25 +00:00
<md-checkbox id="my-test2" name="my-test2" v-model="checkbox">Accent Color</md-checkbox>
2016-08-31 23:22:36 +00:00
</div>
<div v-md-theme="'orange'">
2016-09-06 01:03:25 +00:00
<md-checkbox id="my-test3" name="my-test3" v-model="checkbox">Fancy colors</md-checkbox>
2016-08-31 23:22:36 +00:00
</div>
2016-09-05 05:47:08 +00:00
<div v-md-theme="'teal'">
2016-09-06 01:03:25 +00:00
<md-checkbox id="my-test4" name="my-test4">Really simple</md-checkbox>
2016-08-31 23:22:36 +00:00
</div>
2016-09-05 05:47:08 +00:00
<div v-md-theme="'teal'">
2016-09-06 01:03:25 +00:00
<md-checkbox id="my-test5" name="my-test5" v-model="checkbox" disabled>Disabled</md-checkbox>
2016-08-31 23:22:36 +00:00
</div>
2016-09-06 01:03:25 +00:00
2016-09-06 01:16:51 +00:00
<span>{{ checkbox }}</span>
2016-08-31 23:22:36 +00:00
</section>
</template>
<style lang="scss" scoped>
section {
padding: 0 24px;
}
</style>
<script>
export default {
2016-09-06 01:03:25 +00:00
data() {
return {
checkbox: true
};
2016-08-31 23:22:36 +00:00
}
};
</script>