feat(demo): update example code boolean attrributes
This commit is contained in:
parent
944548dc63
commit
d1844bad55
3 changed files with 6 additions and 7 deletions
|
@ -99,13 +99,14 @@ const theme = "dark";
|
|||
const submit: Submit = {
|
||||
name: "submit",
|
||||
type: "submit",
|
||||
value: "Let's go!",
|
||||
};
|
||||
---
|
||||
|
||||
<Layout title={title} theme={theme}>
|
||||
<Form
|
||||
validateOnLoad={true}
|
||||
showValidationHints={true}
|
||||
validateOnLoad
|
||||
showValidationHints
|
||||
formGroups={form}
|
||||
theme={theme}
|
||||
submitControl={submit}
|
||||
|
|
|
@ -99,6 +99,7 @@ const resume: ControlConfig = {
|
|||
const submit: Submit = {
|
||||
name: "submit",
|
||||
type: "submit",
|
||||
value: "Let's go!",
|
||||
};
|
||||
|
||||
const values = {
|
||||
|
@ -119,7 +120,7 @@ skillsForm.controls.push(new FormControl(resume));
|
|||
|
||||
<Layout title="Programmer Job Application">
|
||||
<Form
|
||||
showValidationHints={true}
|
||||
showValidationHints
|
||||
formGroups={[infoForm, skillsForm]}
|
||||
submitControl={submit}
|
||||
/>
|
||||
|
|
|
@ -92,8 +92,5 @@ infoForm.get("contact")?.setValidators([Validators.minLength(9)]);
|
|||
---
|
||||
|
||||
<Layout title="Pizza Form Demo">
|
||||
<Form
|
||||
showValidationHints={true}
|
||||
formGroups={[baseForm, toppingsForm, infoForm]}
|
||||
/>
|
||||
<Form showValidationHints formGroups={[baseForm, toppingsForm, infoForm]} />
|
||||
</Layout>
|
||||
|
|
Loading…
Reference in a new issue