Step-by-step demo application of Vaadin Elements with Sinatra.
We start with a simple hello, world application.
We move the view to an erb file and render it.
We add some backend data and create a basic layout for the application.
We introduce Gemfile
and make the app runnable through Rack
. Also, we import the required gems.
In this step we import vaadin-elements
gem and put empty Elements in the view.
Here we set up two combo-boxes with predefined data and assign them ids.
We set up the third combo-box and use custom label and value for the items.
We enable sessions, make combo-boxes immediate and capture their events.
The response from the immediate event is displayed in a grid.