Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vue-draggable-grid
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Libraries
vue-draggable-grid
Commits
6819157a
Commit
6819157a
authored
1 year ago
by
Julian
Browse files
Options
Downloads
Patches
Plain Diff
Document isDraggedOver
parent
55054310
No related branches found
Branches containing commit
No related tags found
1 merge request
!12
Pass dragging information to slot for disabled fields
Pipeline
#142481
failed
1 year ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/guide/index.md
+4
-0
4 additions, 0 deletions
docs/guide/index.md
with
4 additions
and
0 deletions
docs/guide/index.md
+
4
−
0
View file @
6819157a
...
...
@@ -77,6 +77,10 @@ disabledFields: [
];
```
To highlight, which fields are disabled, the
`disabledField`
slot can be used. It receives the slot prop
`isDraggedOver`
,
which is a boolean indicating whether something is currently dragged over the grid. This can be used to only show the
disabled fields when something is dragging. An example for this can be found in Example number 7.
## Prevent items from being dragged
To disable dragging of a specific item, simply set the attribute
`disabled`
of the item to
`true`
.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment