mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-31 19:12:20 +08:00
Merge pull request #21659 from ZheyangSong/react-grid-layout
React-Grid-Layout: Add `preventCollision`
This commit is contained in:
5
types/react-grid-layout/index.d.ts
vendored
5
types/react-grid-layout/index.d.ts
vendored
@@ -178,6 +178,11 @@ declare namespace ReactGridLayout {
|
||||
*/
|
||||
isRearrangeable?: boolean;
|
||||
|
||||
/**
|
||||
* If true, grid items won't change position when being dragged over.
|
||||
*/
|
||||
preventCollision?: boolean;
|
||||
|
||||
/**
|
||||
* Uses CSS3 `translate()` instead of position top/left.
|
||||
* This makes about 6x faster paint performance.
|
||||
|
||||
Reference in New Issue
Block a user