-
Notifications
You must be signed in to change notification settings - Fork 24
API | ResponsiveLayout
Jarek Toro edited this page Nov 8, 2016
·
3 revisions
This is at the core of the layout, its only purpose is to hold the ResponsiveRow objects @Viewport("width=device-width, initial-scale=1") this is required and should be above you UI.class
-
setScrollable(boolean scrollable)
-
If you just call
.setsizeFull()
then not only will it make the ResponsiveLayout fill its parent but it will also set the overflow to hidden which inhibits scrolling. -
This is particularly important when the ResponsiveLayout is the core layout of the whole app. This methods allows for scrolling
-
-
addRow(Responsive row)
- Adds a row to the layout similar to
.addComponent(Component component)
.
- Adds a row to the layout similar to
-
setContainerType(ContainerType containerType)
- Gives the Layout a
FIXED
orFLUID
style
- Gives the Layout a
-
addRow()
->ResponsiveRow
- Convenience Method that add a row to itself then returns the Row.
- Basically this method does this for you
ResponsiveRow row = new ResponsiveRow(); self.addRow(row); return row;
- Very handy when used with
ResponsiveRow
convenience methods.
Responsive Layout aims to be the greatest Vaadin layout of all time! So help it become that: