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
+32-6Lines changed: 32 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -152,8 +152,8 @@ Calls back with (`id: number or string`, `direction: string`)
152
152
153
153
#### `onResize`: PropTypes.func
154
154
155
-
Calls when Pane component resize.
156
-
Calls back with (`id: number or string`, `direction: string`, `coputedSize: object`, `clientSize: object`)
155
+
Calls when Pane component resizes.
156
+
Calls back with (`id: number or string`, `direction: string`, `computedSize: object`, `clientSize: object`)
157
157
158
158
- id: pane id
159
159
- direction: `x` or `y` or `xy`
@@ -166,8 +166,8 @@ For example, when `<Resizable width={100} height={200} style={{ padding: '20px'}
166
166
167
167
#### `onResizeStop`: PropTypes.func
168
168
169
-
Calls when Pane component resizeStop.
170
-
Calls back with (`id: number or string`, `direction: string`, `coputedSize: object`, `clientSize: object`)
169
+
Calls when Pane component resize stops.
170
+
Calls back with (`id: number or string`, `direction: string`, `computedSize: object`, `clientSize: object`)
171
171
172
172
- id: pane id
173
173
- direction: `x` or `y` or `xy`
@@ -178,19 +178,35 @@ Calls back with (`id: number or string`, `direction: string`, `coputedSize: obje
178
178
179
179
For example, when `<Resizable width={100} height={200} style={{ padding: '20px'}} onResize={...} />` mounted and resize 'x', this callback is called with `('x', { width: 100, height: 200 }, { width: 140, height: 240 })`
180
180
181
+
#### `onDragStart`: PropTypes.function
182
+
183
+
Calls when a Pane component is clicked (e.g. to sort it). It will not be executed if `isSortable` is `false`.
184
+
Calls back with (`id: number or string`)
185
+
186
+
- id: pane id
187
+
188
+
#### `onDragEnd`: PropTypes.function
189
+
190
+
Calls when a Pane component is released (finished sorting). It will not be executed if `isSortable` is `false`.
0 commit comments