File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed
Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change 7878
7979
8080 let disabled = $state (false );
81- let inert = $state (false );
8281 let html5Validation = $state (false );
83- let errorsList = $state (true );
8482 let doFocusOnFirstError = $state (true );
8583 let errors: Errors = $state .raw (
8684 samples [initialSampleName ].errors ?? new SvelteMap ()
115113 <input type ="checkbox" bind:checked ={disabled } />
116114 Disabled
117115 </label >
118- <label >
119- <input type ="checkbox" bind:checked ={inert } />
120- Inert (readonly)
121- </label >
122116 <label >
123117 <input type ="checkbox" bind:checked ={html5Validation } />
124118 HTML5 validation
125119 </label >
126- <label >
127- <input type ="checkbox" bind:checked ={errorsList } />
128- Errors list
129- </label >
130120 <label >
131121 <input type ="checkbox" bind:checked ={doFocusOnFirstError } />
132122 Focus on first error
222212 {uiSchema }
223213 {validator }
224214 {translation }
225- {inert }
226215 {disabled }
227216 novalidate ={! html5Validation || undefined }
228217 inputsValidationMode ={validationEvent | validationAfter }
237226 console .log (" errors" , errors );
238227 }}
239228 />
240- {#if errorsList && errors .size > 0 }
241- <div style =" color: red; padding-bottom: 1rem;" >
242- <span style =" font-size: larger; font-weight: bold;" >Errors</span >
243- <ui >
244- {#each errors as [field, fieldErrors] (field )}
245- {#each fieldErrors as err }
246- <li >{err .propertyTitle } {err .message }</li >
247- {/each }
248- {/each }
249- </ui >
250- </div >
251- {/if }
252229 </ShadowHost >
253230 </div >
254231</div >
You can’t perform that action at this time.
0 commit comments