Giter Club home page Giter Club logo

Comments (18)

git-ashish avatar git-ashish commented on July 29, 2024 1

@RonakKhandelwal You could consider bridging the gap by making a contribution, its an open source project.

from grid.

RonakKhandelwal avatar RonakKhandelwal commented on July 29, 2024 1

#82 is the one I'm talking about.

from grid.

valentin-radulescu-hs avatar valentin-radulescu-hs commented on July 29, 2024 1

@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:

  1. Fork this repo and clone it on your machine
  2. Make a branch and apply your changes
  3. Publish the branch and make a PR to this repo for that branch

from grid.

ovidiuch avatar ovidiuch commented on July 29, 2024
  1. We already have an open issue for it, definitely important. #29
  2. Not sure I follow...
  3. 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.

Daijobou avatar Daijobou commented on July 29, 2024

For "2": I think like: http://gridster.net/demos/resize-limits.html

from grid.

RonakKhandelwal avatar RonakKhandelwal commented on July 29, 2024

@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.

RonakKhandelwal avatar RonakKhandelwal commented on July 29, 2024

@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.

valentin-radulescu-hs avatar valentin-radulescu-hs commented on July 29, 2024

@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.

RonakKhandelwal avatar RonakKhandelwal commented on July 29, 2024

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.

dusiromulo avatar dusiromulo commented on July 29, 2024

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.

RonakKhandelwal avatar RonakKhandelwal commented on July 29, 2024

@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.

dusiromulo avatar dusiromulo commented on July 29, 2024

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.

dusiromulo avatar dusiromulo commented on July 29, 2024

Here is the zip link: https://drive.google.com/file/d/0B0wKFMQ1VZeCWE1kSElGLWI4M0U/view?usp=sharing

from grid.

dusiromulo avatar dusiromulo commented on July 29, 2024

Some important changes:

  1. 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.
  2. 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.
  3. 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.

RonakKhandelwal avatar RonakKhandelwal commented on July 29, 2024

@valentin-radulescu-hs good enough for pr? If you want some different implementation let me know I'll submit a pr myself.

from grid.

RonakKhandelwal avatar RonakKhandelwal commented on July 29, 2024

@dusiromulo I tested your solution, the remove overlaps items when the items are of different sizes.

from grid.

dusiromulo avatar dusiromulo commented on July 29, 2024

Yeah, I'll do this!

from grid.

KarthikJayakumar avatar KarthikJayakumar commented on July 29, 2024

+1 Any Updates?

from grid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.