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
* pr-37:
Focus element positioning fix for elements inside ng-include
* added fix for `hasGlow` in original pull request
* updated all tests to work with focus-element-selector instead of focus-element-id
* deprecated focus-element-if
* added log events when no element fits selector and when multiple elements returned for selector
Copy file name to clipboardexpand all lines: README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -122,7 +122,7 @@ and use one of the two configurations:
122
122
123
123
-`is-active` (mandatory) - Any walkthrough type. Bound element controls display the directive. Set 'true' to bound element in order to display.
124
124
-`walkthrough-type` (mandatory) - Any walkthrough type. Specifies what type of walkthrough to display. Currently supported are 'transparency' and 'tip' types
125
-
-`focus-element-id` (optional) - Any walkthrough type. ID of DOM element we want to give focus to, without it all screen will be grayed out
125
+
-`focus-element-selector` (optional) - Any walkthrough type. CSS selector of DOM element we want to give focus to, without it all screen will be grayed out. Throws warning if multiple elements return as results and displays first as selected
126
126
-`is-round` (optional) - Any walkthrough type. Set to 'true' if you want the focused area to be round, otherwise it will be square set to the size of the DOM element
127
127
-`has-glow` (optional) - Any walkthrough type. Set to 'true' if you want the focused area to have a glow around it
128
128
-`icon` (optional) - Any walkthrough type. If set to any of the predefined values ("single_tap", "double_tap", "swipe_down", "swipe_left", "swipe_right", "swipe_up"), in such case the icon will be bound to focus element (if exists), make sure to add 'ng-walkthrough.tap_icons.js' following instructions above. any other icon can be used and will be loaded from supplied folder
Copy file name to clipboardexpand all lines: test/ng-walkthroughIonicSpec.js
+1-1
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ describe('ionic specific Tests', function() {
47
47
varpadding=5;
48
48
varhtml=
49
49
'<div ng-view>'+
50
-
'<walkthrough walkthrough-type="transparency" focus-element-id="'+walkthroughFocusItemDOM+'" icon="single_tap" main-caption="This is some text"'+
50
+
'<walkthrough walkthrough-type="transparency" focus-element-selector="#'+walkthroughFocusItemDOM+'" icon="single_tap" main-caption="This is some text"'+
0 commit comments