PluginProbe
The Innovative Form Builder – IvyForms / 1.1
The Innovative Form Builder – IvyForms v1.1
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 / TestingSearch.vue

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

73 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <template>
2 <div>
3 <h3>IvySearch Props Controls</h3>
4 <div class="search-controls">
5 <!-- Placeholder -->
6 <label>
7 Placeholder:
8 <input v-model="placeholder" placeholder="Enter placeholder text" />
9 </label>
10
11 <!-- Priority -->
12 <label>
13 Priority:
14 <select v-model="priority">
15 <option value="primary">Primary</option>
16 <option value="secondary">Secondary</option>
17 </select>
18 </label>
19
20 <label>
21 Disabled:
22 <input v-model="disabled" type="checkbox" />
23 </label>
24 </div>
25 <hr />
26
27 <!-- Search Input Preview -->
28 <div class="search-preview">
29 <h3>Search Input Preview</h3>
30 <IvySearch
31 v-model="searchValue"
32 :placeholder="placeholder"
33 :priority="priority"
34 :disabled="disabled ? '' : undefined"
35 />
36 </div>
37 </div>
38 </template>
39
40 <script setup lang="ts">
41 import { ref } from 'vue'
42 import IvySearch from '@/views/_components/search/IvySearch.vue'
43
44 const searchValue = ref('')
45 const placeholder = ref('Search')
46 const priority = ref<'primary' | 'secondary'>('primary')
47 const disabled = ref<boolean>(false)
48 </script>
49
50 <style scoped>
51 .search-controls {
52 margin-bottom: 20px;
53 padding: 10px;
54 border: 1px solid #ddd;
55 border-radius: 6px;
56 }
57 .search-controls label {
58 display: block;
59 margin-bottom: 10px;
60 }
61 .search-preview {
62 margin-top: 20px;
63 }
64 .search-preview h3 {
65 margin-bottom: 20px;
66 }
67 hr {
68 margin: 20px 0;
69 border: none;
70 border-top: 1px solid #ddd;
71 }
72 </style>
73