2016-08-31 23:22:36 +00:00
|
|
|
<template>
|
2016-09-26 14:41:51 +00:00
|
|
|
<demo-page label="Components - Checkbox">
|
2016-09-19 03:45:48 +00:00
|
|
|
<div slot="examples">
|
|
|
|
|
<demo-example label="Default">
|
|
|
|
|
<md-checkbox id="my-test1" name="my-test1" v-model="checkbox">Regular Checkbox</md-checkbox>
|
|
|
|
|
<md-checkbox id="my-test2" name="my-test2" v-model="checkbox" class="md-primary">Primary Color</md-checkbox>
|
|
|
|
|
<md-checkbox id="my-test3" name="my-test3" v-model="checkbox" class="md-warn">Warn Color</md-checkbox>
|
|
|
|
|
<md-checkbox id="my-test4" name="my-test4" v-model="checkbox" disabled>Disabled</md-checkbox>
|
|
|
|
|
</demo-example>
|
|
|
|
|
|
|
|
|
|
<demo-example label="Themed">
|
|
|
|
|
<div class="themed" v-md-theme="'orange'">
|
|
|
|
|
<md-checkbox id="my-test5" name="my-test5" v-model="checkbox2" class="md-primary">Primary Orange</md-checkbox>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="themed" v-md-theme="'green'">
|
|
|
|
|
<md-checkbox id="my-test6" name="my-test6" v-model="checkbox2" class="md-primary">Primary Green</md-checkbox>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="themed" v-md-theme="'light-blue'">
|
|
|
|
|
<md-checkbox id="my-test7" name="my-test7" v-model="checkbox2" class="md-primary">Primary Light Blue</md-checkbox>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="themed" v-md-theme="'indigo'">
|
|
|
|
|
<md-checkbox id="my-test8" name="my-test8" v-model="checkbox2" class="md-primary">Primary Indigo</md-checkbox>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="themed" v-md-theme="'brown'">
|
|
|
|
|
<md-checkbox id="my-test9" name="my-test9" v-model="checkbox2" class="md-primary" disabled>Primary Brown Disabled</md-checkbox>
|
|
|
|
|
</div>
|
|
|
|
|
</demo-example>
|
2016-08-31 23:22:36 +00:00
|
|
|
</div>
|
|
|
|
|
|
2016-09-19 03:45:48 +00:00
|
|
|
<div slot="code">
|
2016-10-14 23:28:12 +00:00
|
|
|
<demo-example label="Default">
|
|
|
|
|
<code-block lang="xml">
|
|
|
|
|
<md-checkbox id="my-test1" name="my-test1" v-model="checkbox">Regular Checkbox</md-checkbox>
|
|
|
|
|
<md-checkbox id="my-test2" name="my-test2" v-model="checkbox" class="md-primary">Primary Color</md-checkbox>
|
|
|
|
|
<md-checkbox id="my-test3" name="my-test3" v-model="checkbox" class="md-warn">Warn Color</md-checkbox>
|
|
|
|
|
<md-checkbox id="my-test4" name="my-test4" v-model="checkbox" disabled>Disabled</md-checkbox>
|
|
|
|
|
</code-block>
|
|
|
|
|
</demo-example>
|
|
|
|
|
|
|
|
|
|
<demo-example label="Themed">
|
|
|
|
|
<code-block lang="xml">
|
|
|
|
|
<div class="themed" v-md-theme="'orange'">
|
|
|
|
|
<md-checkbox id="my-test5" name="my-test5" v-model="checkbox2" class="md-primary">Primary Orange</md-checkbox>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="themed" v-md-theme="'green'">
|
|
|
|
|
<md-checkbox id="my-test6" name="my-test6" v-model="checkbox2" class="md-primary">Primary Green</md-checkbox>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="themed" v-md-theme="'light-blue'">
|
|
|
|
|
<md-checkbox id="my-test7" name="my-test7" v-model="checkbox2" class="md-primary">Primary Light Blue</md-checkbox>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="themed" v-md-theme="'indigo'">
|
|
|
|
|
<md-checkbox id="my-test8" name="my-test8" v-model="checkbox2" class="md-primary">Primary Indigo</md-checkbox>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="themed" v-md-theme="'brown'">
|
|
|
|
|
<md-checkbox id="my-test9" name="my-test9" v-model="checkbox2" class="md-primary" disabled>Primary Brown Disabled</md-checkbox>
|
|
|
|
|
</div>
|
|
|
|
|
</code-block>
|
|
|
|
|
</demo-example>
|
2016-08-31 23:22:36 +00:00
|
|
|
</div>
|
|
|
|
|
|
2016-09-19 03:45:48 +00:00
|
|
|
<div slot="api">
|
2016-08-31 23:22:36 +00:00
|
|
|
|
|
|
|
|
</div>
|
2016-09-19 03:45:48 +00:00
|
|
|
</demo-page>
|
2016-08-31 23:22:36 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2016-09-19 03:45:48 +00:00
|
|
|
.themed {
|
|
|
|
|
display: inline-block;
|
2016-08-31 23:22:36 +00:00
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
export default {
|
2016-09-06 01:03:25 +00:00
|
|
|
data() {
|
|
|
|
|
return {
|
2016-09-08 05:39:13 +00:00
|
|
|
checkbox: true,
|
|
|
|
|
checkbox2: false
|
2016-09-06 01:03:25 +00:00
|
|
|
};
|
2016-08-31 23:22:36 +00:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
</script>
|