From d05524ef86f542291a8be923600596a5fa8ef462 Mon Sep 17 00:00:00 2001 From: Dmitry Gonchar Date: Fri, 23 Nov 2018 16:23:05 +1100 Subject: [PATCH] Update documentation - `Draggable` does not have `type` property anymore --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 433d6d18da..4f56b11629 100644 --- a/README.md +++ b/README.md @@ -525,7 +525,7 @@ type Props = {| #### Optional props -- `type`: A `TypeId(string)` that can be used to simply accept a class of `Draggable`. For example, if you use the type `PERSON` then it will only allow `Draggable`s of type `PERSON` to be dropped on itself. `Draggable`s of type `TASK` would not be able to be dropped on a `Droppable` with type `PERSON`. If no `type` is provided, it will be set to `'DEFAULT'`. Currently the `type` of the `Draggable`s within a `Droppable` **must be** the same. This restriction might be loosened in the future if there is a valid use case. +- `type`: A `TypeId(string)` that can be used to simply accept only the specified class of `Draggable`. `Draggable`s always inherit type from the `Droppable` they are defined in. For example, if you use the type `PERSON` then it will only allow `Draggable`s of type `PERSON` to be dropped on itself. `Draggable`s of type `TASK` would not be able to be dropped on a `Droppable` with type `PERSON`. If no `type` is provided, it will be set to `'DEFAULT'`. - `isDropDisabled`: A flag to control whether or not dropping is currently allowed on the `Droppable`. You can use this to implement your own conditional dropping logic. It will default to `false`. - `isCombineEnabled`: A flag to control whether or not _all_ the `Draggables` in the list will be able to be **combined** with. It will default to `false`. - `direction`: The direction in which items flow in this droppable. Options are `vertical` (default) and `horizontal`.