Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 18 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ export default class Example extends Component{
}
```


## Props

### SortablePane Component
Expand All @@ -91,13 +90,10 @@ If ommited the default direction is `'horizontal'`.
The `margin` property is used to set the margin between Pane component.
If ommited the default margin is `0`

#### `isResizable`: PropTypes.shape({ x: PropTypes.bool, y: PropTypes.bool, xy: PropTypes.bool })
#### `zIndex`: PropTypes.number

The `isResizable` property is used to set the resizable permission of a component.

The permission of `x`, `y`, `xy` direction resizing.
If omitted the default value is `{ x: true, y: true, xy: true }`.
If you want to permit only x direction resizing, please set `{ x:true, y:false, xy:false }`.
The `zIndex` property is used to set the zIndex of a component.
If ommited the default margin is `100`

#### `isSortable`: PropTypes.bool

Expand Down Expand Up @@ -243,6 +239,15 @@ The `className` property is used to set the css class name of a Pane component.
The `style` property is used to set the style of a Pane component.


#### `isResizable`: PropTypes.shape({ x: PropTypes.bool, y: PropTypes.bool, xy: PropTypes.bool })

The `isResizable` property is used to set the resizable permission of a component.

The permission of `x`, `y`, `xy` direction resizing.
If omitted the default value is `{ x: true, y: true, xy: true }`.
If you want to permit only x direction resizing, please set `{ x:true, y:false, xy:false }`.


## TODO

- [x] Horizontal pane
Expand All @@ -255,11 +260,17 @@ The `style` property is used to set the style of a Pane component.

## Changelog


### V0.5.1

- update readme

### V0.5.0

- Fixes a nasty bug
- Add isResizable props to Pane component
- Set `user-select: none` when resizeing or moving.
- Add zIndex props.
- update example

### V0.4.1
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-sortable-pane",
"version": "0.5.0",
"version": "0.5.1",
"description": "",
"main": "lib/index.js",
"scripts": {
Expand Down