{{ prop.name }}
9 |-
10 |
- Type: 11 |
-
12 | Default:
13 |
{{ getDefault(prop) }}14 |
15 |
{{ getDefault(prop) }}
14 | id attribute',
49 | inDemo: false,
50 | },
51 | {
52 | name: 'inputOptions.maxlength',
53 | type: Number,
54 | default: 100,
55 | description: 'Native input `maxlength` attribute',
56 | inDemo: false,
57 | },
58 | {
59 | name: 'inputOptions.type',
60 | type: String,
61 | default: 'search',
62 | description: 'Native input `type` attribute',
63 | inDemo: false,
64 | },
65 | {
66 | name: 'inputOptions.placeholder',
67 | type: String,
68 | default: '',
69 | description: 'Placeholder of the input',
70 | inDemo: false,
71 | },
72 | {
73 | name: 'inputOptions.styleClasses',
74 | type: [String, Array, Object],
75 | default: '',
76 | description: 'Custom classes for the input',
77 | inDemo: false,
78 | },
79 | {
80 | name: 'inputOptions.wrapperStyleClasses',
81 | type: [String, Array, Object],
82 | default: '',
83 | description: 'Custom classes for the input',
84 | inDemo: false,
85 | },
86 | {
87 | name: 'suggestionOptions.listStyleClasses',
88 | type: [String, Array, Object],
89 | default: '',
90 | description: 'Custom classes for the input',
91 | inDemo: false,
92 | },
93 | {
94 | name: 'suggestionOptions.groupStyleClasses',
95 | type: [String, Array, Object],
96 | default: '',
97 | description: 'Custom classes for the input',
98 | inDemo: false,
99 | },
100 | {
101 | name: 'suggestionOptions.groupHeaderStyleClasses',
102 | type: [String, Array, Object],
103 | default: '',
104 | description: 'Custom classes for the input',
105 | inDemo: false,
106 | },
107 | {
108 | name: 'suggestionOptions.groupHeaderStyleClasses',
109 | type: [String, Array, Object],
110 | default: '',
111 | description: 'Custom classes for the input',
112 | inDemo: false,
113 | },
114 | {
115 | name: 'suggestionOptions.groupHeaderStyleClasses',
116 | type: [String, Array, Object],
117 | default: '',
118 | description: 'Custom classes for the input',
119 | inDemo: false,
120 | },
121 | {
122 | name: 'suggestionOptions.itemWrapperStyleClasses',
123 | type: [String, Array, Object],
124 | default: '',
125 | description: 'Custom classes for the input',
126 | inDemo: false,
127 | },
128 | {
129 | name: 'suggestionOptions.itemStyleClasses',
130 | type: [String, Array, Object],
131 | default: '',
132 | description: 'Custom classes for the input',
133 | inDemo: false,
134 | },
135 | {
136 | name: 'disabled',
137 | type: Boolean,
138 | default: false,
139 | description: 'Disable the input',
140 | inDemo: false,
141 | },
142 | ];
143 |
144 | export const defaultOptions = [...allProps]
145 | .reduce((prv, crr) => {
146 | if (crr.name.includes('.')) {
147 | const [key, nestedKey] = crr.name.split('.');
148 | if (prv[key]) {
149 | Object.assign(prv[key], { [nestedKey]: crr.default });
150 | } else {
151 | Object.assign(prv, { [key]: { [nestedKey]: crr.default } });
152 | }
153 | } else {
154 | Object.assign(prv, { [crr.name]: crr.default });
155 | }
156 | return prv;
157 | }, {});
158 |
159 | export default {
160 | options: { ...defaultOptions },
161 | };
162 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 |
3 |
12 |
13 |
Selected item:
31 |{{ item }}
32 |
33 |