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 = {
|
const submit: Submit = {
|
||||||
name: "submit",
|
name: "submit",
|
||||||
type: "submit",
|
type: "submit",
|
||||||
|
value: "Let's go!",
|
||||||
};
|
};
|
||||||
---
|
---
|
||||||
|
|
||||||
<Layout title={title} theme={theme}>
|
<Layout title={title} theme={theme}>
|
||||||
<Form
|
<Form
|
||||||
validateOnLoad={true}
|
validateOnLoad
|
||||||
showValidationHints={true}
|
showValidationHints
|
||||||
formGroups={form}
|
formGroups={form}
|
||||||
theme={theme}
|
theme={theme}
|
||||||
submitControl={submit}
|
submitControl={submit}
|
||||||
|
|
|
@ -99,6 +99,7 @@ const resume: ControlConfig = {
|
||||||
const submit: Submit = {
|
const submit: Submit = {
|
||||||
name: "submit",
|
name: "submit",
|
||||||
type: "submit",
|
type: "submit",
|
||||||
|
value: "Let's go!",
|
||||||
};
|
};
|
||||||
|
|
||||||
const values = {
|
const values = {
|
||||||
|
@ -119,7 +120,7 @@ skillsForm.controls.push(new FormControl(resume));
|
||||||
|
|
||||||
<Layout title="Programmer Job Application">
|
<Layout title="Programmer Job Application">
|
||||||
<Form
|
<Form
|
||||||
showValidationHints={true}
|
showValidationHints
|
||||||
formGroups={[infoForm, skillsForm]}
|
formGroups={[infoForm, skillsForm]}
|
||||||
submitControl={submit}
|
submitControl={submit}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -92,8 +92,5 @@ infoForm.get("contact")?.setValidators([Validators.minLength(9)]);
|
||||||
---
|
---
|
||||||
|
|
||||||
<Layout title="Pizza Form Demo">
|
<Layout title="Pizza Form Demo">
|
||||||
<Form
|
<Form showValidationHints formGroups={[baseForm, toppingsForm, infoForm]} />
|
||||||
showValidationHints={true}
|
|
||||||
formGroups={[baseForm, toppingsForm, infoForm]}
|
|
||||||
/>
|
|
||||||
</Layout>
|
</Layout>
|
||||||
|
|
Loading…
Reference in a new issue