Web Component: j-Movable
j-Movable
The component handles similar draggable
element and supports movement between each other. Each element according to the selector must have defined draggable="true"
attribute.
- jComponent
v19|v20
Configuration:
selector
{String}
jQuery selector for watchingexec
{String}
A path to method which will be executed if the user moves elementglobal
{Boolean}
drag & drop events will be binded todocument
(default:false
)parent
{String}
selector for finding of element where will be binded drag & drop envets (default: current element)move
{Boolean}
enables auto re-ordering elements (default:true
)container
{String}
a selector for finding of the main container- NEW
check
{Function(el)}
optional, a function for checking of draggability (it must returntrue
orfalse
)
Example of Exec
method:
function exec_method(list, dragged, target) {
// @list jQuery list
}
Good to know:
path
performsCHANGE()
Author
- Peter Širka petersirka@gmail.com
- License
Created
01. october 2019
Updated
02. august 2023
jComponent library
19 | 20
Version
v1
License
https://www.totaljs.com/license/
Responsive
Yes
Author
Peter Širka
Email
petersirka@gmail.com
