The layout to beat them all!
Added fluent withStyle() methods. -see #32 Fixed CSS alignment issues. -see #25 Fixed Demo -see #28
Removed the boolean from setMargin APIs, Use MarginType.None
instead.
See Issue #18 for more info
.setMargin(ResponsiveRow.MarginSize.NORMAL, ResponsiveColumn.DisplaySize.XS, true)
.setMargin(ResponsiveRow.MarginSize.NORMAL, ResponsiveColumn.DisplaySize.SM, true)
.setMargin(ResponsiveRow.MarginSize.NORMAL, ResponsiveColumn.DisplaySize.MD, true)
.setMargin(ResponsiveRow.MarginSize.NORMAL, ResponsiveColumn.DisplaySize.LG, true)
Align Component inside a ResponsiveColumn
col.setAlignment(ColumnComponentAlignment alignment)
col.withCenteredComponent(Component)
col.withRightAlignedComponent(Component)
Give ResponsiveLayouts a ContainerType ref: http://getbootstrap.com/css/#overview-container
ResponsiveLayout responsiveLayout = new ResponsiveLayout(ContainerType)
responsiveLayout.setContainerType(ContainerType)
Add components straight to a Row for a fluid adjustment based on screen size New Api for Margin (Small Normal) Spacing (Small Normal) See Issue: https://github.com/JarekToro/responsive-layout/issues/10
row.addComponents(Components...)
row.withComponents(Components...)
row.setSpacing(SpacingSize.small,true);
row.setMargin(MarginSize.small,true);
row.withSpacing(size,boolean)
row.withMargin(size,boolean)
row.withVerticalSpacing(size,boolean)
row.withHorizontalSpacing(size,boolean)
Thanks @hofmanndavid @bassmartin !