From bde0604431bba9bf9940c20b47ae8b8b9b2a88fd Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Sat, 15 Dec 2018 13:06:58 +0300 Subject: [PATCH] Improved checkbox demo with dynamic values demo --- src/views/checkbox/CheckboxDemo.vue | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/src/views/checkbox/CheckboxDemo.vue b/src/views/checkbox/CheckboxDemo.vue index d72fe553d..5a0f62edc 100644 --- a/src/views/checkbox/CheckboxDemo.vue +++ b/src/views/checkbox/CheckboxDemo.vue @@ -35,24 +35,12 @@

Dynamic Values, Preselection, Value Binding and Disabled Option

-
- - -
-
- - -
-
- - -
-
- - +
+ +
- Selected Themes : {{this.themes}} + Selected Themes : {{this.selectedThemes}}
@@ -63,8 +51,12 @@ export default { return { checked: false, cities: [], - themes: [{brand: 'Serenity', key: 'S'}, {brand: 'Apollo', key: 'A'}] + themes: [{name: 'Apollo', key: 'A'}, {name: 'Babylon', key: 'B'}, {name: 'Serenity', key: 'S'}, {name: 'Ultima', key: 'U'}], + selectedThemes: [] } + }, + created() { + this.selectedThemes = this.themes.slice(1,3); } }