sifatbaho
This commit is contained in:
35
resources/js/pages/nestable.init.js
vendored
Executable file
35
resources/js/pages/nestable.init.js
vendored
Executable file
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
Template Name: Velzon - Admin & Dashboard Template
|
||||
Author: Themesbrand
|
||||
Website: https://Themesbrand.com/
|
||||
Contact: Themesbrand@gmail.com
|
||||
File: nestable init js
|
||||
*/
|
||||
|
||||
// Nested sortable demo
|
||||
var nestedSortables = [].slice.call(document.querySelectorAll('.nested-sortable'));
|
||||
|
||||
// Loop through each nested sortable element
|
||||
if (nestedSortables)
|
||||
Array.from(nestedSortables).forEach(function (nestedSort){
|
||||
new Sortable(nestedSort, {
|
||||
group: 'nested',
|
||||
animation: 150,
|
||||
fallbackOnBody: true,
|
||||
swapThreshold: 0.65
|
||||
});
|
||||
});
|
||||
|
||||
// Nested sortable handle demo
|
||||
var nestedSortablesHandles = [].slice.call(document.querySelectorAll('.nested-sortable-handle'));
|
||||
if (nestedSortablesHandles)
|
||||
// Loop through each nested sortable element
|
||||
Array.from(nestedSortablesHandles).forEach(function (nestedSortHandle){
|
||||
new Sortable(nestedSortHandle, {
|
||||
handle: '.handle',
|
||||
group: 'nested',
|
||||
animation: 150,
|
||||
fallbackOnBody: true,
|
||||
swapThreshold: 0.65
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user