<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Ignite UI for jQuery Layout Manager - Responsive Vertical layout</title>
<!-- Ignite UI for jQuery Required Combined CSS Files -->
<link href="http://cdn-na.infragistics.com/igniteui/2024.1/latest/css/themes/infragistics/infragistics.theme.css" rel="stylesheet" />
<link href="http://cdn-na.infragistics.com/igniteui/2024.1/latest/css/structure/modules/infragistics.ui.layout.css" rel="stylesheet" />
<link href="http://cdn-na.infragistics.com/igniteui/2024.1/latest/css/structure/infragistics.css" rel="stylesheet" />
<!-- Modernizr/jQuery/jQuery UI -->
<script src="http://ajax.aspnetcdn.com/ajax/modernizr/modernizr-2.8.3.js"></script>
<script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="http://code.jquery.com/ui/1.11.1/jquery-ui.min.js"></script>
<!-- Ignite UI for jQuery Required Combined JavaScript Files -->
<script src="http://cdn-na.infragistics.com/igniteui/2024.1/latest/js/infragistics.core.js"></script>
<script src="http://cdn-na.infragistics.com/igniteui/2024.1/latest/js/infragistics.lob.js"></script>
</head>
<body>
<h3>Equal Items</h3>
<div style="height: 1100px;">
<div id="layout"></div>
</div>
<h3>Variable width/height items</h3>
<div style="height: 1000px;">
<div id="layout-variable"></div>
</div>
<script type="text/javascript">
$(document).ready(function () {
$('#layout').on("iglayoutmanageritemrendered", function (e, args) {
args.item.text(args.index);
args.item.css("background-color", "#2CBDF9");
args.item.css("color", "#FFF");
args.item.css("font-size", "20px");
args.item.css("padding", "5px 0 0 5px");
});
$('#layout').igLayoutManager({
layoutMode: "vertical",
itemCount: 10
});
$('#layout-variable').on("iglayoutmanageritemrendered", function (e, args) {
args.item.text(args.index);
args.item.css("background-color", "#2CBDF9");
args.item.css("color", "#FFF");
args.item.css("font-size", "20px");
args.item.css("padding", "5px 0 0 5px");
});
$('#layout-variable').igLayoutManager({
layoutMode: "vertical",
items: [
{
width: "10%",
height: "150px"
},
{
width: "40%",
height: "250px"
},
{
width: "40%",
height: "150px"
},
{
width: "20%",
height: "150px"
},
{
width: "50%",
height: "150px"
}
]
});
});
</script>
</body>
</html>