Giter VIP home page Giter VIP logo

Comments (2)

danomatic avatar danomatic commented on May 28, 2024

Thanks for the feedback! This should be doable, but I'll be honest we have a few other things we should do first and we're fairly busy. Perhaps you could make the change and submit a pull request or hook into the input and output to and from the grid to adjust the values.

from angular-gridster.

Grim--Reaper avatar Grim--Reaper commented on May 28, 2024

First, let me say: you are doing great work here!
I'm facing a similar issue as keithmancuso does. I'd love to be able to calculate the col/row indexes or provide a function for reading/updating. It works in one way (read from model) but not the other way (update model).
Example:
I store a SortOrder in my database starting with 1. In the view I can write
data-row="{{item.SortOrder}} - 1"
and it works but the update obviously should be
item.SortOrder = {{row}} + 1
Of course I could save the sorting zero-based but the col value is the id of the related group table.

from angular-gridster.

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.