Giter Site home page Giter Site logo

Comments (5)

ilrisa avatar ilrisa commented on July 17, 2024 2

hi, I agree with the request made by Jaycer17, can i have an example of how to set the functions GetLabel and GetId? Thank you

from jquery-seat-charts.

jctmf avatar jctmf commented on July 17, 2024

Have this problem too.

from jquery-seat-charts.

mateuszmarkowski avatar mateuszmarkowski commented on July 17, 2024

Please see a similar issue #62.

You can specify your own function generating labels which will skip empty places:
https://github.com/mateuszmarkowski/jQuery-Seat-Charts#naming

from jquery-seat-charts.

spinninghamster avatar spinninghamster commented on July 17, 2024

I am also looking for a solution. Can't figure it out :(

from jquery-seat-charts.

mateuszmarkowski avatar mateuszmarkowski commented on July 17, 2024

The issue is that JSC doesn't analyze columns to check if they are empty and therefore it automatically assigns a subsequent number to each of the columns assuming they have at least one non empty seat.

The following jsfiddle demonstrates how to "skip" empty columns (naming.columns attribute is the key, the rest is just the demo map):
https://jsfiddle.net/50c8hf32/

naming : {
  getLabel : function (character, row, column) {
    return row+column;
  },
  rows: ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I'],
  columns : ['1', '2', '', '3', '4']
}

from jquery-seat-charts.

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.