forked from gridstack/gridstack.js
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix gridstack#2677 * allow event target to be draggable even if in the blocked list if that is the specified handle.
- Loading branch information
Showing
3 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>drag button demo</title> | ||
|
||
<link rel="stylesheet" href="../../../demo/demo.css" /> | ||
<script src="../../../dist/gridstack-all.js"></script> | ||
<style> | ||
.handle { cursor: move } | ||
</style> | ||
</head> | ||
<body> | ||
<div class="grid-stack"></div> | ||
<script type="text/javascript"> | ||
let items = [ | ||
{x: 0, y: 0, content: '<button class="handle">Handle</button>'}, | ||
{x: 1, y: 0, w: 3, content: '<span class="handle">Handle</span>'}, | ||
]; | ||
let grid = GridStack.init({handle: '.handle', cellHeight: 70}).load(items); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters