This repository was archived by the owner on Jul 30, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathicon.js
More file actions
137 lines (137 loc) · 8.03 KB
/
icon.js
File metadata and controls
137 lines (137 loc) · 8.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var React = require("react");
var ej2_react_navigations_1 = require("@syncfusion/ej2-react-navigations");
var sample_base_1 = require("../common/sample-base");
require("./accordion.component.css");
var Icons = (function (_super) {
__extends(Icons, _super);
function Icons() {
return _super !== null && _super.apply(this, arguments) || this;
}
Icons.prototype.render = function () {
function acrdnHeader1() {
return (React.createElement("div", null, "Athletics"));
}
function acrdnHeader2() {
return (React.createElement("div", null, "Water Games"));
}
function acrdnHeader3() {
return (React.createElement("div", null, "Racing"));
}
function acrdnHeader4() {
return (React.createElement("div", null, "Indoor Games"));
}
function athletics() {
return (React.createElement("div", { id: "athletics" },
React.createElement("li", null,
"Marathon",
React.createElement("span", { className: 'e-acrdn-icons e-content-icon marathon' })),
React.createElement("li", null,
"Javelin Throw",
React.createElement("span", { className: 'e-acrdn-icons e-content-icon javelin' })),
React.createElement("li", null,
"Discus Throw",
React.createElement("span", { className: 'e-acrdn-icons e-content-icon discus' })),
React.createElement("li", null,
"High Jump",
React.createElement("span", { className: 'e-acrdn-icons e-content-icon highjump' })),
React.createElement("li", null,
"Long Jump",
React.createElement("span", { className: 'e-acrdn-icons e-content-icon longjump' }))));
}
function water_games() {
return (React.createElement("div", { id: "water_games" },
React.createElement("li", null,
"Diving",
React.createElement("span", { className: 'e-acrdn-icons e-content-icon dive' })),
React.createElement("li", null,
"Swimming",
React.createElement("span", { className: 'e-acrdn-icons e-content-icon swimming' })),
React.createElement("li", null,
"Marathon Swimming",
React.createElement("span", { className: 'e-acrdn-icons e-content-icon marathan_swim' })),
React.createElement("li", null,
"Synchronized Swimming",
React.createElement("span", { className: 'e-acrdn-icons e-content-icon sync_swim' })),
React.createElement("li", null,
"Water Polo",
React.createElement("span", { className: 'e-acrdn-icons e-content-icon waterpolo' }))));
}
function racing_games() {
return (React.createElement("div", { id: "racing_games" },
React.createElement("li", null,
"Cycling BMX",
React.createElement("span", { className: 'e-acrdn-icons e-content-icon cycle_BMX' })),
React.createElement("li", null,
"Cycling Mountain Bike ",
React.createElement("span", { className: 'e-acrdn-icons e-content-icon cycle_Mountain' })),
React.createElement("li", null,
"Cycle Racing ",
React.createElement("span", { className: 'e-acrdn-icons e-content-icon cycle' })),
React.createElement("li", null,
"Sailing ",
React.createElement("span", { className: 'e-acrdn-icons e-content-icon sailing' })),
React.createElement("li", null,
"Rowing ",
React.createElement("span", { className: 'e-acrdn-icons e-content-icon rowing' }))));
}
function indoor_games() {
return (React.createElement("div", { id: "indoor_games" },
React.createElement("li", null,
"Table Tennis",
React.createElement("span", { className: 'e-acrdn-icons e-content-icon tennis' }),
" "),
React.createElement("li", null,
"Badminton ",
React.createElement("span", { className: 'e-acrdn-icons e-content-icon badminton' }),
" "),
React.createElement("li", null,
"Volleyball ",
React.createElement("span", { className: 'e-acrdn-icons e-content-icon volleyball' }),
" "),
React.createElement("li", null,
"Boxing ",
React.createElement("span", { className: 'e-acrdn-icons e-content-icon boxing' })),
React.createElement("li", null,
"Swimming ",
React.createElement("span", { className: 'e-acrdn-icons e-content-icon swimming_In' }))));
}
return (React.createElement("div", { className: 'control-pane' },
React.createElement("div", { className: 'control-section accordion-control-section' },
React.createElement("div", { className: 'control Accordion-sample', style: { margin: '25px 0' } },
React.createElement(ej2_react_navigations_1.AccordionComponent, null,
React.createElement(ej2_react_navigations_1.AccordionItemsDirective, null,
React.createElement(ej2_react_navigations_1.AccordionItemDirective, { header: acrdnHeader1, iconCss: 'e-athletics e-acrdn-icons', content: athletics, expanded: true }),
React.createElement(ej2_react_navigations_1.AccordionItemDirective, { header: acrdnHeader2, iconCss: 'e-water-game e-acrdn-icons', content: water_games }),
React.createElement(ej2_react_navigations_1.AccordionItemDirective, { header: acrdnHeader3, iconCss: 'e-racing-games e-acrdn-icons', content: racing_games }),
React.createElement(ej2_react_navigations_1.AccordionItemDirective, { header: acrdnHeader4, iconCss: 'e-indoor-games e-acrdn-icons', content: indoor_games }))))),
React.createElement("div", { id: "action-description" },
React.createElement("p", null,
"This sample demonstrates the icon representation of the ",
React.createElement("code", null, "Accordion"),
". Click on the header element to expand/collapse the corresponding Accordion panel, and displays its content.")),
React.createElement("div", { id: 'description' },
React.createElement("p", null,
React.createElement("p", null,
"This Accordion is populated with icons which renders by mapping the ",
React.createElement("code", null, "iconCss"),
" field. This sample illustrates the some of the games list."),
React.createElement("p", null,
"More information about Accordion can be found in this ",
React.createElement("a", { target: "_blank", href: "http://ej2.syncfusion.com/react/documentation/accordion/getting-started.html" }, "documentation"),
" section.")))));
};
return Icons;
}(sample_base_1.SampleBase));
exports.Icons = Icons;