-
Notifications
You must be signed in to change notification settings - Fork 380
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1327 from pnp/dev
Dev
- Loading branch information
Showing
40 changed files
with
1,264 additions
and
772 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
docs/documentation/docs/controls/ProgressStepsIndicator.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Progress Steps Indicator | ||
|
||
This control shows a progress of steps. | ||
|
||
Here is an example of the control in action: | ||
|
||
![ProgressStepsIndicator](../assets/ProgressStepsIndicator.png) | ||
|
||
|
||
|
||
## How to use this control in your solutions | ||
|
||
- Check that you installed the `@pnp/spfx-controls-react` dependency. Check out the [getting started](../../#getting-started) page for more information about installing the dependency. | ||
- In your component file, import the `ProgressStepsIndicator` control as follows: | ||
|
||
```TypeScript | ||
import { ProgressStepsIndicator } from '"@pnp/spfx-controls-react/lib/ProgressStepsIndicator'; | ||
|
||
const progressSteps: IStep[] = [ | ||
{ id: 0, title: "Step 1", description: "Step 1 Description" }, | ||
{ id: 1, title: "Step 2", description: "Step 2 Description" }, | ||
{ id: 3, title: "Step 3", description: "Step 3 Description" }, | ||
{ id: 4, title: "Step 4", description: "Step 4 Description" }, | ||
{ id: 5, title: "Step 5", description: "Step 5 Description" }, | ||
{ id: 6, title: "Step 6", description: "Step 6 Description" }, | ||
]; | ||
``` | ||
|
||
- Use the `ProgressStepsIndicator` control in your code as follows: | ||
|
||
```TypeScript | ||
{ | ||
<ProgressStepsIndicator steps={progressSteps} currentStep={0} themeVariant={props.themeVariant} /> | ||
} | ||
``` | ||
|
||
|
||
## Implementation | ||
|
||
The `ProgressStepsIndicator` control can be configured with the following properties: | ||
|
||
| Property | Type | Required | Description | Default | | ||
| ---- | ---- | ---- | ---- | ---- | | ||
| steps | ISteps[] | yes | Perogress Steps | | | ||
| currentStep | number | yes | index of current step | default is 0| | ||
| themeVariant | IReadonlyTheme | undefined | no | Theme | | | ||
|
||
The `IStep Interface` definition: | ||
|
||
```TypeScript | ||
Interface IStep { | ||
id?:number; | ||
title:string; | ||
description:string; | ||
} | ||
``` | ||
|
||
|
||
|
||
|
||
![](https://telemetry.sharepointpnp.com/sp-dev-fx-controls-react/wiki/controls/ProgressStepsIndicator) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.