We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc0ae57 commit febbd88Copy full SHA for febbd88
lib/web/mage/sticky.js
@@ -12,8 +12,24 @@ define([
12
$.widget('mage.sticky', {
13
options: {
14
container: '',
15
+
16
+ /**
17
+ * Spacing in pixels above the stuck element
18
+ * @type {Number|Function} Number or Function that will return a Number
19
+ */
20
spacingTop: 0,
21
22
23
+ * Allows postponing sticking, until element will go out of the
24
+ * screen for the number of pixels.
25
26
27
stickAfter: 0,
28
29
30
+ * CSS class for active sticky state
31
+ * @type {String}
32
33
stickyClass: '_sticky'
34
},
35
0 commit comments