You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Modify bower.json to clean up reference, add better documentation to wizard directives (optional values, information about proper structure) and added minHeight property as well.
Copy file name to clipboardExpand all lines: src/wizard/wizard-directive.js
+35-16Lines changed: 35 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -3,22 +3,36 @@
3
3
* @name patternfly.wizard.directive:pfWizard
4
4
*
5
5
* @description
6
-
* Directive for rendering a Wizard modal.
6
+
* Directive for rendering a Wizard modal. Each wizard dynamically creates the step navigation both in the header and the left-hand side based on nested steps.
7
+
* Use the pf-wizardstep to define individual steps within a wizard and pf-wizardsubstep to define portions of pf-wizardsteps if so desired. For instance, Step one can have two substeps - 1A and 1B when it is logical to group those together.
8
+
* <br /><br />
9
+
* The basic structure should be:
10
+
* <pre>
11
+
* <div pf-wizard>
12
+
* <div pf-wizardstep>
13
+
* <div pf-wizardsubstep><!-- content here --></div>
14
+
* <div pf-wizardsubstep><!-- content here --></div>
15
+
* </div>
16
+
* <div pf-wizardstep><!-- additional configuration can be added here with substeps if desired --></div>
17
+
* <div pf-wizardstep><!-- review steps and final command here --></div>
18
+
* </div>
19
+
* </pre>
7
20
*
8
21
* @param {string} title The wizard title displayed in the header
9
-
* @param {boolean} hideIndicators Hides the step indicators in the header of the wizard
10
-
* @param {string} currentStep The current step can be changed externally - this is the title of the step to switch the wizard to
11
-
* @param {string} cancelTitle The text to display on the cancel button
12
-
* @param {string} backTitle The text to display on the back button
13
-
* @param {string} nextTitle The text to display on the next button
14
-
* @param {function (step)} backCallback Called to notify when the back button is clicked
15
-
* @param {function (step)} nextCallback Called to notify when the next button is clicked
16
-
* @param {function ()} onFinish Called to notify when when the wizard is complete. Returns a boolean value to indicate if the finish operation is complete
17
-
* @param {function ()} onCancel Called when the wizard is canceled, returns a boolean value to indicate if cancel is successful
22
+
* @param {boolean=} hideIndicators Hides the step indicators in the header of the wizard
23
+
* @param {string=} currentStep The current step can be changed externally - this is the title of the step to switch the wizard to
24
+
* @param {string=} cancelTitle The text to display on the cancel button
25
+
* @param {string=} backTitle The text to display on the back button
26
+
* @param {string=} nextTitle The text to display on the next button
27
+
* @param {function (step)=} backCallback Called to notify when the back button is clicked
28
+
* @param {function (step)=} nextCallback Called to notify when the next button is clicked
29
+
* @param {function ()=} onFinish Called to notify when when the wizard is complete. Returns a boolean value to indicate if the finish operation is complete
30
+
* @param {function ()=} onCancel Called when the wizard is canceled, returns a boolean value to indicate if cancel is successful
18
31
* @param {boolean} wizardReady Value that is set when the wizard is ready
19
-
* @param {boolean} wizardDone Value that is set when the wizard is done
32
+
* @param {boolean=} wizardDone Value that is set when the wizard is done
20
33
* @param {string} loadingWizardTitle The text displayed when the wizard is loading
21
-
* @param {string} loadingSecondaryInformation Secondary descriptive information to display when the wizard is loading
34
+
* @param {string=} loadingSecondaryInformation Secondary descriptive information to display when the wizard is loading
35
+
* @param {number=} minHeight The minimum height the wizard should adjust to if the window height is decreased. The wizard height is adjusted with the window resize event and this sets the minimum.
Copy file name to clipboardExpand all lines: src/wizard/wizard-step-directive.js
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -3,25 +3,25 @@
3
3
* @name patternfly.wizard.directive:pfWizardStep
4
4
*
5
5
* @description
6
-
* Directive for rendering a Wizard step. Each step can stand alone or have substeps.
6
+
* Directive for rendering a Wizard step. Each step can stand alone or have substeps. This directive can only be used as a child of pf-wizard.
7
7
*
8
8
* @param {string} stepTitle The step title displayed in the header and used for the review screen when displayed
9
9
* @param {string} stepId Sets the text identifier of the step
10
10
* @param {number} stepPriority This sets the priority of this wizard step relative to other wizard steps. They should be numbered sequentially in the order they should be viewed.
11
11
* @param {boolean} substeps Sets whether this step has substeps
12
-
* @param {boolean} nextEnabled Sets whether the next button should be enabled when this step is first displayed
13
-
* @param {boolean} prevEnabled Sets whether the back button should be enabled when this step is first displayed
14
-
* @param {string} nextTooltip The text to display as a tooltip on the next button
15
-
* @param {string} prevTooltip The text to display as a tooltip on the back button
16
-
* @param {boolean} wzDisabled Disables the wizard when this page is shown
12
+
* @param {boolean=} nextEnabled Sets whether the next button should be enabled when this step is first displayed
13
+
* @param {boolean=} prevEnabled Sets whether the back button should be enabled when this step is first displayed
14
+
* @param {string=} nextTooltip The text to display as a tooltip on the next button
15
+
* @param {string=} prevTooltip The text to display as a tooltip on the back button
16
+
* @param {boolean=} wzDisabled Disables the wizard when this page is shown
17
17
* @param {boolean} okToNavAway Sets whether or not it's ok for the user to leave this page
18
18
* @param {boolean} allowClickNav Sets whether the user can click on the numeric step indicators to navigate directly to this step
19
-
* @param {string} description The step description (optional)
19
+
* @param {string=} description The step description (optional)
20
20
* @param {object} wizardData Data passed to the step that is shared by the entire wizard
21
-
* @param {function()} onShow The function called when the wizard shows this step
22
-
* @param {boolean} showReview Indicates whether review information should be displayed for this step when the review step is reached
23
-
* @param {boolean} showReviewDetails Indicators whether the review information should be expanded by default when the review step is reached
24
-
* @param {string} reviewTemplate The template that should be used for the review details screen
21
+
* @param {function()=} onShow The function called when the wizard shows this step
22
+
* @param {boolean=} showReview Indicates whether review information should be displayed for this step when the review step is reached
23
+
* @param {boolean=} showReviewDetails Indicators whether the review information should be expanded by default when the review step is reached
24
+
* @param {string=} reviewTemplate The template that should be used for the review details screen
* Directive for rendering a Wizard substep. Each substep must be a child of a step in a wizard.
5
+
* Directive for rendering a Wizard substep. Each substep must be a child of a pf-wizardstep in a pf-wizard directive.
6
6
*
7
7
* @param {string} stepTitle The step title displayed in the header and used for the review screen when displayed
8
8
* @param {string} stepId Sets the text identifier of the step
9
9
* @param {number} stepPriority This sets the priority of this wizard step relative to other wizard steps. They should be numbered sequentially in the order they should be viewed.
10
-
* @param {boolean} nextEnabled Sets whether the next button should be enabled when this step is first displayed
11
-
* @param {boolean} prevEnabled Sets whether the back button should be enabled when this step is first displayed
12
-
* @param {boolean} wzDisabled Disables the wizard when this page is shown
10
+
* @param {boolean=} nextEnabled Sets whether the next button should be enabled when this step is first displayed
11
+
* @param {boolean=} prevEnabled Sets whether the back button should be enabled when this step is first displayed
12
+
* @param {boolean=} wzDisabled Disables the wizard when this page is shown
13
13
* @param {boolean} okToNavAway Sets whether or not it's ok for the user to leave this page
14
-
* @param {boolean} allowClickNav Sets whether the user can click on the numeric step indicators to navigate directly to this step
15
-
* @param {string} description The step description (optional)
14
+
* @param {boolean=} allowClickNav Sets whether the user can click on the numeric step indicators to navigate directly to this step
15
+
* @param {string=} description The step description
16
16
* @param {object} wizardData Data passed to the step that is shared by the entire wizard
17
-
* @param {function()} onShow The function called when the wizard shows this step
18
-
* @param {boolean} showReviewDetails Indicators whether the review information should be expanded by default when the review step is reached
19
-
* @param {string} reviewTemplate The template that should be used for the review details screen
17
+
* @param {function()=} onShow The function called when the wizard shows this step
18
+
* @param {boolean=} showReviewDetails Indicators whether the review information should be expanded by default when the review step is reached
19
+
* @param {string=} reviewTemplate The template that should be used for the review details screen
0 commit comments