PluginProbe
The Innovative Form Builder – IvyForms / 0.4
The Innovative Form Builder – IvyForms v0.4
1.5.1 1.5 1.4.1 1.4 trunk 0.1.2 0.2 0.2.1 0.3 0.3.1 0.4 0.5 0.6 0.6.1 0.6.1-backup 0.6.1.1 0.7 0.8 0.8.1 0.8.2 0.9 0.9.1 1.0 1.1 1.1.1 All 27 releases
ivyforms / frontend / src / views / admin / testing / testing-page / TestingTabs.vue

TestingTabs.vue in The Innovative Form Builder – IvyForms 0.4, at frontend/src/views/admin/testing/testing-page/TestingTabs.vue

84 lines 2.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <template>
2 <h3>Tabs Props Controls</h3>
3 <div class="tabs-controls">
4 <label>
5 <input v-model="background" type="checkbox" />
6 Background
7 </label>
8
9 <label>
10 Priority:
11 <select v-model="priority">
12 <option value="primary">Primary</option>
13 <option value="secondary">Secondary</option>
14 <option value="tertiary">Tertiary</option>
15 <option value="amber">Amber</option>
16 </select>
17 </label>
18
19 <label>
20 Size:
21 <select v-model="size">
22 <option value="s">Small</option>
23 <option value="d">Default</option>
24 <option value="l">Large</option>
25 </select>
26 </label>
27
28 <label>
29 Type:
30 <select v-model="type">
31 <option value="filled">Filled</option>
32 <option value="tonal">Tonal</option>
33 <option value="fab">FAB</option>
34 </select>
35 </label>
36
37 <label>
38 Position:
39 <select v-model="position">
40 <option value="top">Top</option>
41 <option value="bottom">Bottom</option>
42 <option value="left">Left</option>
43 <option value="right">Right</option>
44 </select>
45 </label>
46
47 <label>
48 <input v-model="addTab" type="checkbox" />
49 Enable Add/Remove Tabs
50 </label>
51 </div>
52
53 <h3>Tabs Component Preview</h3>
54 <div class="component-preview">
55 <IvyTabs
56 v-model="modelValue"
57 :size="size"
58 :type="type"
59 :priority="priority"
60 :position="position"
61 :add-tab="addTab"
62 :background="background"
63 :tabs="[
64 { name: 'tab1', label: 'Home', iconConfig: { name: 'info', type: 'outline', size: 'l' } },
65 { name: 'tab2', label: 'User' },
66 { name: 'tab3', label: 'Settings' },
67 ]"
68 />
69 </div>
70 </template>
71
72 <script setup lang="ts">
73 import { ref } from 'vue'
74
75 // Props data
76 const background = ref(false)
77 const priority = ref<'primary' | 'secondary' | 'tertiary' | 'amber'>('primary')
78 const size = ref<'s' | 'd' | 'l'>('d')
79 const type = ref<'filled' | 'tonal' | 'fab'>('filled')
80 const position = ref<'top' | 'bottom' | 'left' | 'right'>('top')
81 const addTab = ref(false)
82 const modelValue = ref('tab1')
83 </script>
84