Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Individual seat pricing #88

Open
danhutch88 opened this issue Sep 11, 2023 · 1 comment
Open

Individual seat pricing #88

danhutch88 opened this issue Sep 11, 2023 · 1 comment

Comments

@danhutch88
Copy link

Any suggestions on how to assign an individual price per seat, rather than using letter groups?

It's for airplane seat selection, each seat could have a unique price. My understanding of the repo so far means I'm limited to 52 individual prices (Upper and lower case single letters of the alphabet).

Thanks in advance.

@mateuszmarkowski
Copy link
Owner

mateuszmarkowski commented Sep 16, 2023

The click handler gives you access to the ID of the seat that was clicked. Seat IDs are unique and generated automatically but you can override the method generating them to use your internal IDs. See the getId method in the documentation.

Once you have the ID you can pull the price from any external source like e.g. hash or even make an http call to grab it from your server. See the highlighted snippet from the live demo:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants