Skip to content

Commit

Permalink
version 0.7.5
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbarbara committed Oct 29, 2015
1 parent cd0d860 commit 898deba
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,23 @@ Retrieve the current progress of your tour. The object returned looks like this:
}}
```

### Only start the tour after all target elements (or at least the first step) are rendered in the page.

```javascript
componentDidMount: function () {
this.joyrideAddSteps([{...},], true);
}
// or/and
componentDidUpdate: function (prevProps, prevState) {
if (!prevState.ready && this.state.ready) {
this.joyrideAddSteps(steps, true);
//or
this.joyrideStart();
}
}

```

## Step Syntax
There are 4 usable options but you can pass extra parameters.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-joyride",
"version": "0.7.4",
"version": "0.7.5",
"description": "Create walkthroughs and guided tours for your apps",
"author": "Gil Barbara <[email protected]>",
"repository": {
Expand Down

0 comments on commit 898deba

Please sign in to comment.