FluidGrid allows to set up a nice tight grid with items that have variable heights and widths.
FluidGrid is a responsive grid. That means, the grid will reflow as the window size changes.
Items can have any content: text, images, links, input fields, etc.
They can be defined in a static or in a dynamic way as in data iteration components.
This example demonstrates how to specifies elements which are stamped within the layout.
These are special layout elements which will not be laid out by FluidGrid. Rather, FluidGrid will layout
items below stamped elements. To specify stamped elements, use the
stamp attribute
which can be any search expression supported by the PrimeFaces Search Expression Framework.
Furtermore, some client-side widget's methods will be demonstrated too. Stamped elements can be
toggled by the widget's method
unstamp() and
stamp().
The layout can be triggered automatically by the widget's method
layout().
Note: When the fluid grid is within a layout pane / unit, it re-layouts itself automatically
on resizing this layout pane / unit. In this case, set the attribute
resizeBound
to
false to deacivate the re-layouting when resizing the browser window.