Comments (3)
Hi,
This can be achieved using jquery. After panel is dragged, you need to find all .lobipanel
elements in its parent and get index for each of them
$('selector')
.on('dragged.lobiPanel', function(){
var $parent = $(this).parent(),
$children = $parent.children();
$children.each(function(ind, el){
console.log(el, $(el).index());
});
})
.lobiPanel();
I have not tested this code. I have just written it. But it should print element and its new position in console
from lobipanel.
Thank you, as you suggested, I've solved it retrieving them with jQuery on the dragged.lobiPanel
event.
from lobipanel.
Welcome!!!
from lobipanel.
Related Issues (20)
- No method named "destroy" HOT 1
- lobi-panel, basic-usage, not working
- Don't remove DOM content on close event
- set panels order
- onMinimize.lobiPanel event is not triggered
- Lobi Panel Unpin
- Fullscren Input and select focus not working HOT 1
- Use this in bootstrap 4 beta it is error HOT 1
- disable dropdown menu HOT 1
- Can save position lobipanel ? HOT 1
- onMinimeze event problem
- Iframe inside lobipanel reloads each time panel gets maximized, minimized, unpinned
- How to use stateful option
- Just a little question
- Why is 36px of padding added to bottom of body when panel minimized? HOT 1
- Can not move panel if all the panels dragged form one to another column HOT 1
- Not working Events
- Apply sorting feature dynamically on Lobipanel
- Create dynamicly new panel
- LobiPanel does not load panel positions from localStorage
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lobipanel.