All Implemented Interfaces:
Serializable, Cloneable, Iterable<Grid.Position>, Collection<Grid.Position>, List<Grid.Position>, RandomAccess

public class Grid extends ArrayList<Grid.Position>
Helper class that represents a Bootstrap grid layout: a number of columns (Grid.Position) with one or more specifiers (eg. hidden, pull-right, width for different devices etc).

The static convenience methods create(int...) help you easily create basic grids. Example more complex grid layout:

     Grid.create(
       Grid.position( Device.MD.hidden(), Device.LG.width( Width.QUARTER ).asOffset() ),
       Grid.position( Device.SM.width( Width.THREE_QUARTERS ) )
     );
 
Would result in:
     Grid{[hidden-md col-lg-offset-3],[col-sm-9]}
 
See Also: