84
84
< ui5-li style ="display: none " selected type ="Active "> Longest word in the world</ ui5-li >
85
85
</ ui5-multi-combobox >
86
86
</ div >
87
+
87
88
< div class ="demo-section ">
88
89
< span > Validating input and predefined value</ span >
89
90
95
96
< ui5-li selected type ="Active "> Longest word in the world</ ui5-li >
96
97
</ ui5-multi-combobox >
97
98
</ div >
99
+
98
100
< div class ="demo-section ">
99
101
< span > Validating input and placeholder </ span >
100
102
106
108
< ui5-li selected type ="Active "> Longest word in the world</ ui5-li >
107
109
</ ui5-multi-combobox >
108
110
</ div >
111
+
109
112
< div class ="demo-section ">
110
113
< span > disabled and placeholder </ span >
111
114
117
120
< ui5-li selected type ="Active "> Longest word in the world</ ui5-li >
118
121
</ ui5-multi-combobox >
119
122
</ div >
123
+
120
124
< div class ="demo-section ">
121
125
< span > value state success </ span >
122
126
123
127
< br >
124
- < ui5-multi-combobox allow-custom-values style ="width: 560px " placeholder ="Some initial text " value-state ="Success ">
128
+ < ui5-multi-combobox allow-custom-values style ="width: 560px " placeholder ="Some initial text "
129
+ value-state ="Success ">
125
130
< ui5-li selected type ="Active "> Cosy</ ui5-li >
126
131
< ui5-li type ="Active "> Compact</ ui5-li >
127
132
< ui5-li selected type ="Active "> Condensed</ ui5-li >
128
133
< ui5-li selected type ="Active "> Longest word in the world</ ui5-li >
129
134
</ ui5-multi-combobox >
130
135
</ div >
136
+
131
137
< div class ="demo-section ">
132
138
< span > value state warning </ span >
133
139
134
140
< br >
135
- < ui5-multi-combobox allow-custom-values style ="width: 560px " placeholder ="Some initial text " value-state ="Warning ">
141
+ < ui5-multi-combobox allow-custom-values style ="width: 560px " placeholder ="Some initial text "
142
+ value-state ="Warning ">
136
143
< ui5-li selected type ="Active "> Cosy</ ui5-li >
137
144
< ui5-li type ="Active "> Compact</ ui5-li >
138
145
< ui5-li selected type ="Active "> Condensed</ ui5-li >
139
146
< ui5-li selected type ="Active "> Longest word in the world</ ui5-li >
140
147
</ ui5-multi-combobox >
141
148
</ div >
149
+
142
150
< div class ="demo-section ">
143
151
< span > value state error </ span >
144
152
145
153
< br >
146
- < ui5-multi-combobox allow-custom-values style ="width: 560px " placeholder ="Some initial text " value-state ="Error ">
154
+ < ui5-multi-combobox allow-custom-values style ="width: 560px " placeholder ="Some initial text "
155
+ value-state ="Error ">
147
156
< ui5-li selected type ="Active "> Cosy</ ui5-li >
148
157
< ui5-li type ="Active "> Compact</ ui5-li >
149
158
< ui5-li selected type ="Active "> Condensed</ ui5-li >
150
159
< ui5-li selected type ="Active "> Longest word in the world</ ui5-li >
151
160
</ ui5-multi-combobox >
152
161
</ div >
162
+
153
163
< div class ="demo-section ">
154
164
< span > readonly </ span >
155
165
175
185
</ div >
176
186
177
187
< div class ="demo-section ">
178
- < span > MultiComboBox n more </ span > </ br >
188
+ < span > MultiComboBox with validation </ span >
179
189
180
- < ui5-multi-combobox style ="width: 320px " placeholder ="Some initial text " id ="more-mcb ">
181
- < ui5-li type ="Active " selected > Cosy</ ui5-li >
182
- < ui5-li type ="Active " selected > Compact</ ui5-li >
183
- < ui5-li type ="Active "> Condensed</ ui5-li >
184
- < ui5-li type ="Active " selected > Longest word in the world</ ui5-li >
185
- </ ui5-multi-combobox >
186
- </ div >
190
+ < br >
191
+ < ui5-multi-combobox allow-custom-values style ="width: 560px " placeholder ="Some initial text " id ="another-mcb ">
192
+ < ui5-li type ="Active "> Cosy</ ui5-li >
193
+ < ui5-li type ="Active "> Compact</ ui5-li >
194
+ < ui5-li type ="Active "> Condensed</ ui5-li >
195
+ < ui5-li type ="Active "> Longest word in the world</ ui5-li >
196
+ </ ui5-multi-combobox >
197
+ </ div >
187
198
188
- < div class ="demo-section ">
189
- < span > MultiComboBox with validation </ span >
199
+ < div class ="demo-section ">
200
+ < span > MultiComboBox n more </ span > </ br >
190
201
191
- < br >
192
- < ui5-multi-combobox style ="width: 560px " placeholder ="Some initial text " id ="mcb-validation ">
193
- < ui5-li type ="Active "> Cosy</ ui5-li >
194
- < ui5-li type ="Active "> Compact</ ui5-li >
195
- < ui5-li type ="Active "> Condensed</ ui5-li >
196
- < ui5-li type ="Active "> Longest word in the world</ ui5-li >
197
- </ ui5-multi-combobox >
198
- </ div >
202
+ < ui5-multi-combobox style ="width: 320px " placeholder ="Some initial text " id ="more-mcb ">
203
+ < ui5-li type ="Active " selected > Cosy</ ui5-li >
204
+ < ui5-li type ="Active " selected > Compact</ ui5-li >
205
+ < ui5-li type ="Active "> Condensed</ ui5-li >
206
+ < ui5-li type ="Active " selected > Longest word in the world</ ui5-li >
207
+ </ ui5-multi-combobox >
208
+ </ div >
209
+
210
+ < div class ="demo-section ">
211
+ < span > MultiComboBox with validation</ span >
212
+
213
+ < br >
214
+ < ui5-multi-combobox style ="width: 560px " placeholder ="Some initial text " id ="mcb-validation ">
215
+ < ui5-li type ="Active "> Cosy</ ui5-li >
216
+ < ui5-li type ="Active "> Compact</ ui5-li >
217
+ < ui5-li type ="Active "> Condensed</ ui5-li >
218
+ < ui5-li type ="Active "> Longest word in the world</ ui5-li >
219
+ </ ui5-multi-combobox >
220
+ </ div >
199
221
200
222
201
223
< hr class ="demo-section ">
214
236
< br >
215
237
216
238
< span > Event call count: </ span >
217
- < input type ="text " id ="events-call-count " value ="0 "/>
239
+ < input type ="text " id ="events-call-count " value ="0 " />
218
240
219
241
< br >
220
242
< br >
224
246
225
247
226
248
< script >
227
-
228
249
const eventNameInput = document . getElementById ( "events-input" ) ;
229
250
const eventParamsInput = document . getElementById ( "events-parameters" ) ;
230
251
const callCountInput = document . getElementById ( "events-call-count" ) ;
231
252
const resetBtn = document . getElementById ( "reset-btn" ) ;
232
253
233
- document . getElementById ( "mcb" ) . addEventListener ( "ui5-selectionChange" , function ( event ) {
254
+ document . getElementById ( "mcb" ) . addEventListener ( "ui5-selectionChange" , function ( event ) {
234
255
eventNameInput . value = "selectionChange" ;
235
256
eventParamsInput . value = event . detail . items . length ;
236
257
callCountInput . value = parseInt ( callCountInput . value ) + 1 ;
237
258
} ) ;
238
259
239
- resetBtn . addEventListener ( "click" , function ( event ) {
260
+ resetBtn . addEventListener ( "click" , function ( event ) {
240
261
eventNameInput . value = "" ;
241
262
eventParamsInput . value = "" ;
242
263
callCountInput . value = "" ;
245
266
246
267
</ body >
247
268
248
- </ html >
269
+ </ html >
0 commit comments