Adding comments to the wizard.

This commit is contained in:
Ken Sternberg 2023-07-30 06:26:54 -07:00
parent 369c7be68d
commit 540eee1612
2 changed files with 10 additions and 0 deletions

View File

@ -12,6 +12,8 @@ import PFFormControl from "@patternfly/patternfly/components/FormControl/form-co
import PFInputGroup from "@patternfly/patternfly/components/InputGroup/input-group.css"; import PFInputGroup from "@patternfly/patternfly/components/InputGroup/input-group.css";
import PFBase from "@patternfly/patternfly/patternfly-base.css"; import PFBase from "@patternfly/patternfly/patternfly-base.css";
/* NOT USED */
@customElement("ak-wizard-form") @customElement("ak-wizard-form")
export abstract class WizardForm extends Form<KeyUnknown> { export abstract class WizardForm extends Form<KeyUnknown> {
viewportCheck = false; viewportCheck = false;

View File

@ -21,10 +21,18 @@ export class WizardPage extends AKElement {
return this.parentElement as Wizard; return this.parentElement as Wizard;
} }
/**
* Called when this is the page brought into view
*/
activeCallback: () => Promise<void> = async () => { activeCallback: () => Promise<void> = async () => {
this.host.isValid = false; this.host.isValid = false;
}; };
/**
* Called when the `next` button on the wizard is pressed. For forms, results in the submission
* of the current form to the back-end before being allowed to proceed to the next page. This is
* sub-optimal if we want to collect multiple bits of data before finishing the whole course.
*/
nextCallback: () => Promise<boolean> = async () => { nextCallback: () => Promise<boolean> = async () => {
return true; return true;
}; };