mateuszmarkowski / jQuery-Seat-Charts

jQuery Seat Charts Plugin
MIT License
593 stars 210 forks source link

Skip counting ID of empty rows/column #62

Closed hihahihahoho closed 7 years ago

hihahihahoho commented 7 years ago

For Ex i have a map like this: map: ['[empty][empty][empty]nnnnnnnnnnnnnnnn[empty][empty][empty]'] eventhough the first three spaces of the map are empty, they are still counted [A_1, A_2, A_3], so the first 'n' ID is [A_4], I want them to start counting at the first 'n' seat (n[A_1]), not emty space. Any solution for this?

mateuszmarkowski commented 7 years ago

What you can in your situation is simply overriding getLabel / getId so that your functions skip empty spaces.

hihahihahoho commented 7 years ago

ok, thanks man 👍

jaycer17 commented 6 years ago

@mateuszmarkowski can you please give example on how to override the getLabel / getId?