Skip to content

Commit 6068c5d

Browse files
author
INFRAGISTICS\TIliev
committed
Merge branch '16.2' of https://github.com/IgniteUI/help-samples-src into 16.2
2 parents c619349 + 2f8f50a commit 6068c5d

3 files changed

Lines changed: 69 additions & 2 deletions

File tree

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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>
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
2+
"center_area": "center text",
23
"center_area_caps": "CENTER AREA",
34
"footer_area": "FOOTER - some text here ",
45
"header_area": "HEADER - some text here",
56
"left_area": "LEFT AREA",
67
"right_area": "RIGHT AREA",
7-
"Title_angular": "AngularJS"
8+
"Title_angular": "AngularJS",
9+
"Title_border-layout": "Border Layout - Initializing with JavaScript"
810
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
2+
"center_area": "中央テキスト",
23
"center_area_caps": "中央領域",
34
"footer_area": "フッター テキスト",
45
"header_area": "ヘッダー テキスト",
56
"left_area": "左領域",
67
"right_area": "右領域",
7-
"Title_angular": "AngularJS との連携"
8+
"Title_angular": "AngularJS との連携",
9+
"Title_border-layout": "境界線のレイアウト - JavaScript の初期化"
810
}

0 commit comments

Comments
 (0)