Skip to content

Commit 80327eb

Browse files
committed
Change Changelog + update README
1 parent 7560e1f commit 80327eb

File tree

1 file changed

+65
-1
lines changed

1 file changed

+65
-1
lines changed

README.md

Lines changed: 65 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,38 @@ introJs().goToStep(2).start(); //starts introduction from step 2
9797

9898
-----
9999

100+
###introJs.nextStep()
101+
102+
Go to next step of introduction.
103+
104+
**Available since**: v0.7.0
105+
106+
**Returns:**
107+
- introJs object.
108+
109+
**Example:**
110+
```javascript
111+
introJs().start().nextStep();
112+
````
113+
114+
-----
115+
116+
###introJs.previousStep()
117+
118+
Go to previous step of introduction.
119+
120+
**Available since**: v0.7.0
121+
122+
**Returns:**
123+
- introJs object.
124+
125+
**Example:**
126+
```javascript
127+
introJs().goToStep(3).start().previousStep(); //starts introduction from step 2
128+
````
129+
130+
-----
131+
100132
###introJs.exit()
101133

102134
Exit the introduction.
@@ -258,6 +290,26 @@ introJs().onbeforechange(function(targetElement) {
258290

259291
-----
260292

293+
###introJs.onafterchange(providedCallback)
294+
295+
Given callback function will be called after starting a new step of introduction. The callback function receives the element of the new step as an argument.
296+
297+
**Available since:** v0.7.0
298+
299+
**Parameters:**
300+
- providedCallback : Function
301+
302+
**Returns:**
303+
- introJs object.
304+
305+
**Example:**
306+
```javascript
307+
introJs().onafterchange(function(targetElement) {
308+
alert("after new step");
309+
});
310+
````
311+
312+
-----
261313
###Attributes:
262314
- `data-intro`: The tooltip text of step
263315
- `data-step`: Optionally define the number (priority) of step
@@ -279,7 +331,7 @@ introJs().onbeforechange(function(targetElement) {
279331
- `keyboardNavigation`: Navigating with keyboard or not, `true` or `false`
280332
- `showButtons`: Show introduction navigation buttons or not, `true` or `false`
281333
- `showBullets`: Show introduction bullets or not, `true` or `false`
282-
- `scrollToElement`: Autoscoll to highlighted element, `true` or `false`
334+
- `scrollToElement`: Auto scroll to highlighted element if it's outside of viewport, `true` or `false`
283335

284336
See [setOption](https://github.com/usablica/intro.js/#introjssetoptionoption-value) to see an example.
285337

@@ -324,6 +376,18 @@ Want to learn faster and easier? Here we have **Instant IntroJs**, Packt Publish
324376

325377
## Release History
326378

379+
* **v0.7.0** - 2014-02-07
380+
- Add `onafterchange` event
381+
- Add scrolling to element option
382+
- Add `nextStep` and `previousStep` functions publicly
383+
- Add `_cloneObject` method to prevent data overwriting
384+
- Fix null elements problem with programmatic definition
385+
- Fix issues with single-step introductions
386+
- Fix top margin problem on hidden elements
387+
- Fix stacking context problem caused by element opacity
388+
- Fix call exit() on null elements
389+
- Update documentation and add more details on CDN servers and RTL example
390+
327391
* **v0.6.0** - 2013-11-13
328392
- Add step bullets with navigating
329393
- Add option to hide introduction navigating buttons

0 commit comments

Comments
 (0)