Handle Properties
* id is used in an example * isValidConnection has to take the connection argument to validate
This commit is contained in:
@@ -16,7 +16,8 @@ interface HandleProps {
|
|||||||
type: HandleType;
|
type: HandleType;
|
||||||
position: Position;
|
position: Position;
|
||||||
onConnect?: OnConnectFunc;
|
onConnect?: OnConnectFunc;
|
||||||
isValidConnection?: () => boolean;
|
isValidConnection?: (connection: Connection) => boolean;
|
||||||
|
id?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const Handle = memo(
|
const Handle = memo(
|
||||||
|
|||||||
Reference in New Issue
Block a user