|
| 1 | +<!DOCTYPE html> |
| 2 | +<html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 | +<head> |
| 4 | + <title>$$(Title_border-layout)</title> |
| 5 | + <!-- Ignite UI Required Combined CSS Files --> |
| 6 | + <link href="%%ignite-ui%%/css/themes/infragistics/infragistics.theme.css" rel="stylesheet"> |
| 7 | + <link href="%%ignite-ui%%/css/structure/modules/infragistics.ui.layout.css" rel="stylesheet"> |
| 8 | + <link href="%%ignite-ui%%/css/structure/infragistics.css" rel="stylesheet"> |
| 9 | + |
| 10 | + <!-- Modernizr/jQuery/jQuery UI --> |
| 11 | + <script src="%%modernizr%%"></script> |
| 12 | + <script src="%%jquery%%"></script> |
| 13 | + <script src="%%jquery-ui%%"></script> |
| 14 | + |
| 15 | + <!-- Ignite UI Required Combined JavaScript Files --> |
| 16 | + <script src="%%ignite-ui%%/js/infragistics.core.js"></script> |
| 17 | + <script src="%%ignite-ui%%/js/infragistics.lob.js"></script> |
| 18 | + <script type="text/javascript"> |
| 19 | + $(document).ready(function () { |
| 20 | + // attach to events so that we can add the items content |
| 21 | + $('#layout').on("iglayoutmanageritemrendered", function (event, args) { |
| 22 | + if (args.region === "left") { |
| 23 | + args.element.text("$$(left_area)"); |
| 24 | + args.element.css("background-color", "#FFA72D"); |
| 25 | + args.element.css("color", "#FFF"); |
| 26 | + } else if (args.region === "right") { |
| 27 | + args.element.text("$$(right_area)"); |
| 28 | + args.element.css("background-color", "#555"); |
| 29 | + args.element.css("color", "#EEE"); |
| 30 | + } else if (args.region === "center") { |
| 31 | + args.element.text("$$(center_area)"); |
| 32 | + args.element.css("background-color", "#EEE"); |
| 33 | + args.element.css("color", "#555"); |
| 34 | + } else if (args.region === "header") { |
| 35 | + args.element.text("$$(header_area)"); |
| 36 | + args.element.css("background-color", "#2CBDF9"); |
| 37 | + args.element.css("color", "#FFF"); |
| 38 | + } else if (args.region === "footer") { |
| 39 | + args.element.text("$$(footer_area)"); |
| 40 | + args.element.css("background-color", "#2CBDF9"); |
| 41 | + args.element.css("color", "#FFF"); |
| 42 | + } |
| 43 | + }); |
| 44 | + $('#layout').igLayoutManager({ |
| 45 | + layoutMode: "border", |
| 46 | + borderLayout: { |
| 47 | + leftWidth: "10%", |
| 48 | + rightWidth: "20%" |
| 49 | + } |
| 50 | + }); |
| 51 | + }); |
| 52 | + </script> |
| 53 | + <style> |
| 54 | + #sampleContainer { |
| 55 | + height: 370px; |
| 56 | + } |
| 57 | + </style> |
| 58 | +</head> |
| 59 | +<body> |
| 60 | + <div id="layout" style="width:100%; height: 300px; display:block;"> |
| 61 | + </div> |
| 62 | +</body> |
| 63 | +</html> |
0 commit comments