Hi, I have an idea for a project and wondered what the right approach be in cuba-platform.
The project is a seating planner for concert halls, where the user could select seats and add attributes to the seat selection.
The problem is that I have no idea about how I would go about displaying a seat map, with the ability to interact (i.e. select one or multiple seats, and add color to seats depending on attributes).
The seat map data would be prepared outside of Cuba. I was thinking maybe using svg would allow for parsing in Cuba.
In such a complex case I would develop a JavaScript widget and then integrate it to UI. Check this manual page for custom JavaScript component integration.
In that JavaScript component you can use keyboard events, SVG or Canvas and call server-side using RPC.
It is hard to use it with dynamically formed components. It supports only static HTML template and UI components, though HTML template can formed dynamically at runtime.
Developing a JavaScript widget would probably allow for the most complete and clean solution, but HtmlBoxLayout may be an option to quickly solve the issue.