Skip to content

Commit 0b9d49d

Browse files
authored
Merge pull request #145 from xbsoftware/4.0.2
4.0.2 Added possibility to set arrow color. Added possibility to hide Previous button.
2 parents 00b2708 + 359f994 commit 0b9d49d

File tree

10 files changed

+8280
-7
lines changed

10 files changed

+8280
-7
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules/*
2-
lib/*
2+
lib/*
3+
package-lock.json

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ var enjoyhint_script_steps = [
8484

8585
#### Properties of the step configuration
8686
* `"event selector" : "description"` - to describe a step you should set an event type, selecte element and add description for this element (hint)
87+
* `arrowColor` - the color of a marker that accepts all CSS colors.
8788
* `keyCode` - the code of a button, which triggers the next EnjoyHint step upon a click. Defined by the “key” event. (“key #block” : “hello”).
8889
* `event_selector` - if you need to attach an event (that was set in "event" property) to other selector, you can use this one
8990
* `timeout` - delay before the moment, when an element is highlighted
@@ -107,12 +108,13 @@ var enjoyhint_script_steps = [
107108
```
108109
* `showSkip` - shows or hides the Skip button (true|false)
109110
* `showNext` - shows or hides the Next button (true|false)
111+
* `showPrev` - shows or hides the Previous button (true|false)
110112

111113

112114

113115

114116
#### Non-standard events:
115-
**auto** - for example, you need to click on the same button on the second step imediatelly after the first step and go to the next step after it. Then you can use "auto" in the "event_type" property and "click" in "event" property.
117+
* `auto` - for example, you need to click on the same button on the second step imediatelly after the first step and go to the next step after it. Then you can use "auto" in the "event_type" property and "click" in "event" property.
116118
* `custom` - this value is very usefull if you need to go to the next step by event in your app code. For example, you want to go to the next step only after some data have been loaded in your application. Then you should use the "custom" event_type and the "trigger" method of the EnjoyHint instance.
117119
```javascript
118120
//Example of using custom event_type
@@ -169,6 +171,7 @@ var enjoyhint_script_steps = [
169171
* Add responsive design
170172
* Add mobile support
171173
* Add possibility to go back to previous step
174+
* Add possibility to select the color of a marker
172175

173176

174177

0 commit comments

Comments
 (0)