Skip to content

Commit febbd88

Browse files
committed
DocBlocks added for the new options
1 parent fc0ae57 commit febbd88

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

lib/web/mage/sticky.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,24 @@ define([
1212
$.widget('mage.sticky', {
1313
options: {
1414
container: '',
15+
16+
/**
17+
* Spacing in pixels above the stuck element
18+
* @type {Number|Function} Number or Function that will return a Number
19+
*/
1520
spacingTop: 0,
21+
22+
/**
23+
* Allows postponing sticking, until element will go out of the
24+
* screen for the number of pixels.
25+
* @type {Number|Function} Number or Function that will return a Number
26+
*/
1627
stickAfter: 0,
28+
29+
/**
30+
* CSS class for active sticky state
31+
* @type {String}
32+
*/
1733
stickyClass: '_sticky'
1834
},
1935

0 commit comments

Comments
 (0)