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
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,8 +66,8 @@ export default MyImage;
66
66
67
67
| Prop | Type | Default | Description |
68
68
|:---|:---|:---|:---|
69
-
| onLoad |`Function`|| Function called when the image has been loaded. This is the same function as the `onLoad` of a`<img>` which contains an event object. |
70
-
| afterLoad |`Function`|| Deprecated, use `onLoad` instead. This props is only for backward compatibility. |
69
+
| onLoad |`Function`|| Function called when the image has been loaded. This is the same function as the `onLoad` of an`<img>` which contains an event object. |
70
+
| afterLoad |`Function`|| Deprecated, use `onLoad` instead. This prop is only for backward compatibility. |
71
71
| beforeLoad |`Function`|| Function called right before the placeholder is replaced with the image element. |
72
72
| delayMethod |`String`|`throttle`| Method from lodash to use to delay the scroll/resize events. It can be `throttle` or `debounce`. |
73
73
| delayTime |`Number`| 300 | Time in ms sent to the delayMethod. |
@@ -189,8 +189,8 @@ You must set the prop `scrollPosition` to the lazy load components. This way, th
189
189
| Prop | Type | Default | Description |
190
190
|:---|:---|:---|:---|
191
191
| scrollPosition |`Object`|| Object containing `x` and `y` with the curent window scroll position. Required. |
192
-
| onLoad |`Function`|| Function called when the image has been loaded. This is the same function as the `onLoad` of a`<img>` which contains an event object. |
193
-
| afterLoad |`Function`|| Deprecated, use `onLoad` instead. This props is only for backward compatibility. |
192
+
| onLoad |`Function`|| Function called when the image has been loaded. This is the same function as the `onLoad` of an`<img>` which contains an event object. |
193
+
| afterLoad |`Function`|| Deprecated, use `onLoad` instead. This prop is only for backward compatibility. |
194
194
| beforeLoad |`Function`|| Function called right before the image is rendered. |
195
195
| placeholder |`ReactClass`|`<span>`| React element to use as a placeholder. |
196
196
| threshold |`Number`| 100 | Threshold in pixels. So the image starts loading before it appears in the viewport. |
0 commit comments