Comments (18)
@RonakKhandelwal You could consider bridging the gap by making a contribution, its an open source project.
from grid.
#82 is the one I'm talking about.
from grid.
@dusiromulo Would you mind opening a PR? It would make it much easier to review. If you're unfamiliar with the git workflow there are plenty of tutorials online, some I used are: this and this.
The process would be:
- Fork this repo and clone it on your machine
- Make a branch and apply your changes
- Publish the branch and make a PR to this repo for that branch
from grid.
- We already have an open issue for it, definitely important. #29
- Not sure I follow...
- This is something we might soon need internally as well, so hopefully it'll come true in the not so distant future. Outside contributions have already started so this is another way it might happen earlier. Feel free to open an issue for this to have more visibility.
from grid.
For "2": I think like: http://gridster.net/demos/resize-limits.html
from grid.
@skidding if I could get an update on this, it would be great since no. 1 is a very important feature that we need and it is the sole issue standing between our project and this amazing lib. So if I could get an update I would be so grateful.
from grid.
@git-ashish I definitely would have if I wasn't swamped with this ongoing project. I wanted a library which would take care of all these features so that I have space for some extra work on my plate, anyways I saw a guy who was interested in submitting a pr for the same issue but he never got a response.
from grid.
@RonakKhandelwal I'm open to doing a code review if he submits a PR, don't know to whom you're referring to...
from grid.
A solution for no 2. Put this code just under the place where you are actually creating the grid. Somewhere around " $('#grid').gridList({ " function
$( "#grid li" ).resizable({
ghost: true,
grid: [$('#grid').data("_gridList")._cellWidth, $('#grid').data("_gridList")._cellHeight],
minHeight: 10,
minWidth: 10,
start: function (event, ui) {
$("#grid").data("resizing", true);
},
stop: function (event, ui) {
var minHeight = $('#grid').data("_gridList")._cellHeight;
var minWidth = $('#grid').data("_gridList")._cellWidth;
$("#grid").data("resizing", false);
var li = $(ui.originalElement)[0];
if(!event.revert) {
var opt = {
w: Math.round(ui.size.width/ $('#grid').data("_gridList")._cellWidth),
h: Math.round(ui.size.height / $('#grid').data("_gridList")._cellHeight)
};
$('.grid').gridList('resizeItem', li, opt);
}
}
});
from grid.
Hey guys, I'm doing a widget for Django that uses this lib. I've implemented add and remove elements, if you want I can post it here.
from grid.
@dusiromulo please do, even I am on my way of implementing that and I hope that the author can incorporate the changes in the lib
from grid.
What is the best way to put my code here in this page? I've implemented some functions inside gridList.js and jquery.gridList.js and code of theses files are too big. My zip file is not acceptable...
from grid.
Here is the zip link: https://drive.google.com/file/d/0B0wKFMQ1VZeCWE1kSElGLWI4M0U/view?usp=sharing
from grid.
Some important changes:
- Sorry, but I have to change the DemoGrid structure, because I want two grids in the same page. Create function for creating new item in grid.
- Inside jquery.gridList.js on function _applyPositionToItems i'm applying the respective position in the respective HTML element. I need this for calculate the new element position.
- Inside gridList.js I create removeItem function, for remove the item of structure and apply new position for items below this item.
Sorry for bad english too.
from grid.
@valentin-radulescu-hs good enough for pr? If you want some different implementation let me know I'll submit a pr myself.
from grid.
@dusiromulo I tested your solution, the remove overlaps items when the items are of different sizes.
from grid.
Yeah, I'll do this!
from grid.
+1 Any Updates?
from grid.
Related Issues (20)
- How to use with npm and webpack? HOT 7
- Type Definition file HOT 1
- Bower reports mismatch during v0.3.1 installation HOT 1
- Initial render when x and y attributes are not provided works for horizontal direction but in vertical direction it just stacks one under the other. HOT 2
- Enabling and disabling drag and drop HOT 1
- how to size boxes?
- Can jQuery be removed? HOT 7
- Overlapping item
- Integrate with Vuejs
- Needs Accessibility Review
- Minimal required CSS HOT 1
- New items being stack one below previous item
- this._adjustSizeOfItems is not a function
- change direction to ltr and rtl
- Acessing the underlying GridList object from jQuery plugin
- Not working in NodeApp
- The demo website has js errors
- How can I swap object without moving to the right?
- Can't create a grid
- limiting ammount of boxes on load
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 grid.