Comments (5)
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.
Have this problem too.
from jquery-seat-charts.
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.
I am also looking for a solution. Can't figure it out :(
from jquery-seat-charts.
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)
- the first seat is changed green when clicked blank area HOT 1
- Testing
- Empty seats skip sorting problems HOT 1
- How do I change seats in mobile?
- Make seat chart responsive and scalable HOT 3
- Click on chart space in a map bigger then screen moves map up.
- dynamic kinds of seats
- this.data() show empty when i click
- lost focus when remap
- 当座位区域出现滚动条时,滚动到底部后,点击选座区域里的空白处后,区域会滚动顶部是什么原因?
- First seat gets selected when clicking elsewhere HOT 4
- Dynamic Seats with Php
- Different columns same map
- generar 2 mapas de asientos sin separar
- Shitty Repo HOT 2
- Old Selected Seats Are there in New Seatchart
- Unicode in Seat Label
- Tooltip when focused
- Individual seat pricing HOT 1
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 jquery-seat-charts.