From 93f33a7a8623650680c95f6734dd3e56f24b775d Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Sat, 15 Dec 2018 13:10:49 +0300 Subject: [PATCH] Improved checkbox demo with dynamic values demo --- src/views/radiobutton/RadioButtonDemo.vue | 33 +++++++---------------- 1 file changed, 10 insertions(+), 23 deletions(-) diff --git a/src/views/radiobutton/RadioButtonDemo.vue b/src/views/radiobutton/RadioButtonDemo.vue index 63ab22731..4c8e56bc4 100644 --- a/src/views/radiobutton/RadioButtonDemo.vue +++ b/src/views/radiobutton/RadioButtonDemo.vue @@ -29,26 +29,14 @@ Selected City : {{this.city}} -

Advanced with Preselection, Value Binding and Disabled Option

+

Dynamic Values, Preselection, Value Binding and Disabled Option

-
- - -
-
- - -
-
- - -
-
- - +
+ +
- Selected Template : {{this.theme}} + Selected Theme : {{this.selectedTheme}}
@@ -57,14 +45,13 @@ export default { data() { return { - city: 'null', - theme: {brand: 'Serenity', key: 'S'} + city: null, + themes: [{name: 'Apollo', key: 'A'}, {name: 'Babylon', key: 'B'}, {name: 'Serenity', key: 'S'}, {name: 'Ultima', key: 'U'}], + selectedTheme: null } }, - methods: { - onChange() { - console.log('change'); - } + created() { + this.selectedTheme = this.themes[1]; } }