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
The `isResizable` property is used to set the resizable permission of a component.
97
97
98
98
The permission of `x`, `y`, `xy` direction resizing.
99
-
If ommited the default value is `{ x: true, y: true, xy: true }`.
100
-
If you want to permit only x direction resizing, please set `{ x:true, y:false, xy:false }`.
99
+
If omitted the default value is `{ x: true, y: true, xy: true }`.
100
+
If you want to permit only x direction resizing, please set `{ x:true, y:false, xy:false }`.
101
+
102
+
#### `isSortable`: PropTypes.bool
103
+
104
+
The `isSortable` property is used to control whether panes can be dragged or not.
105
+
If omitted, the default value is `true`.
101
106
102
-
#### `disableEffect`: PropTypes.bool,
107
+
#### `disableEffect`: PropTypes.bool
103
108
104
109
The `disableEffect` property is used to disable floating effect.
105
-
If ommited the default margin is `false`.
110
+
If omitted the default margin is `false`.
106
111
107
-
#### `onOrderChange`: PropTypes.func,
112
+
#### `onOrderChange`: PropTypes.func
108
113
109
114
Calls when pane component order changed.
110
115
Calls back with (`oldPanes: array`, `newPanes: array`)
@@ -136,11 +141,11 @@ See the example bellow.
136
141
]
137
142
```
138
143
139
-
144
+
140
145
#### `onResizeStart`: PropTypes.func
141
146
142
147
Calls when pane component resize starts.
143
-
Calls back with (`id: number or string`, ``direction: string`)
148
+
Calls back with (`id: number or string`, `direction: string`)
144
149
145
150
- id: pane id
146
151
- direction: `x` or `y` or `xy`
@@ -156,7 +161,7 @@ Calls back with (`id: number or string`, `direction: string`, `coputedSize: obje
156
161
- this argument is {width, height} of getComputedStyle.
157
162
- rect: `{ width, height }`
158
163
- this argument is `clientWidth` and `clientHeight`.
159
-
164
+
160
165
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 })`
161
166
162
167
#### `onResizeStop`: PropTypes.func
@@ -170,7 +175,7 @@ Calls back with (`id: number or string`, `direction: string`, `coputedSize: obje
170
175
- this argument is {width, height} of getComputedStyle.
171
176
- rect: `{ width, height }`
172
177
- this argument is `clientWidth` and `clientHeight`.
173
-
178
+
174
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 })`
175
180
176
181
## Pane Component
@@ -201,7 +206,7 @@ The `maxWidth` property is used to set the maximum width of a Pane component.
201
206
202
207
#### `maxHeight`: PropTypes.number
203
208
204
-
The `maxheight` property is used to set the maximum height of a Pane component.
209
+
The `maxHeight` property is used to set the maximum height of a Pane component.
205
210
206
211
#### `className`: PropTypes.string
207
212
@@ -301,4 +306,3 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of
301
306
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
302
307
303
308
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
0 commit comments