Skip to content

Commit aec0ef1

Browse files
author
pipeline
committed
v25.1.35 is released
1 parent 4d55aa3 commit aec0ef1

File tree

1,187 files changed

+12940
-3151
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,187 files changed

+12940
-3151
lines changed

README.md

Lines changed: 12 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -1,104 +1,25 @@
1-
# JavaScript Sample Browser
1+
# Syncfusion JavaScript Control Demo Samples
22

3-
## Adding New Sample
3+
Welcome to the demo samples repository for Syncfusion JavaScript Controls! This repository contains a collection of sample applications showcasing the usage of various Syncfusion Controls in a JavaScript environment.
44

5-
Create your new folder in 'src' location and name the folder as control name. Example: “button” or "list-view".
5+
## Prerequisites
66

7-
Add your sample order in the `src/common/sampleOrder.json` with corresponding category.
7+
- [Node.js](https://nodejs.org/en) - `v16+`
88

9-
**Note:** Do not use whitespace at any cause in the folder’s name. Use “-” instead of space.
9+
## Run the samples
1010

11+
To run the sample applications locally, follow these steps
1112

12-
### Configure the folder and sample
13-
14-
Create the “sample.json” file inside of your control folder. Create your sample html and js file in same folder also the html and js files should have the same names.
15-
16-
**Note:** Do not use whitespace at any cause in the file’s name. Use “-” instead of space.
17-
18-
19-
### Configure Sample JSON
20-
21-
Configure your sample json file as like below code snippet.
13+
1. Install the required dependencies using npm
2214

15+
```bash
16+
npm install
2317
```
24-
{
25-
"name": "Grid",
26-
"directory": "grid",
27-
"category": "Grid",
28-
"samples": [
29-
{ "url": "localdata", "name": "Local Data", "category": "Data Binding" },
30-
{ "url": "remotedata", "name": "Remote Data", "category": "Data Binding" },
31-
{ "url": "autowrap", "name": "AutoWrap Column Cells", "category": "Columns" },
32-
{ "url": "showhide", "name": "Show or Hide Column", "category": "Columns" }
33-
],
34-
"dataSourcePath": "src/grid/datasource.js"
35-
}
36-
```
37-
**Note:** To exculde a sample in the device you need to set `hideOnDevice` as true for the sample json file.
38-
39-
**Fields Description:**
40-
41-
* _name :_ It can be any string that you want to show a component name.
42-
43-
* _directory :_ Specifies that your sample's directory name.
44-
45-
* _category :_ Specify that your sample comes under which category.
46-
47-
* _dataSourcePath :_ Specify that your data source file Path (Optional).
48-
49-
* _samples :_ Specify array of samples in your control.
50-
51-
* _samples.url :_ specifies the file name without extension.
52-
53-
* _samples.name :_ It can be any string that you want to show a sample name.
54-
55-
* _samples.category :_ Specify that your sample comes under which category.
56-
57-
58-
## Adding datasource components
59-
60-
To add datasource file for the component, you need to include the `dataSourcePath` option which need to map the datasource file path in the component's sample.json.
61-
62-
refer the below link for config
63-
64-
https://github.com/syncfusion/ej2-javascript-samples/blob/master/src/grid/sample.json#L7
6518

66-
The sample datasource file need to store the json in window variable.
19+
2. Start the development server using gulp
6720

68-
Each component's datasource window variable name must be unique.
69-
70-
For example datasource for grid must be stored as `window.gridData`.
71-
72-
Refer the below datasource file for further reference
73-
74-
https://github.com/syncfusion/ej2-javascript-samples/blob/master/src/grid/data-source.js
75-
76-
**Note:** Each component should include one datasource file only.
77-
78-
## Run the sample browser
79-
80-
We can run the sample browser with two commands
81-
82-
1. **gulp _serve_** – run the sample browser alone.
83-
2. **gulp _watch_** – run the sample browser and monitor typescript as well. This will help at development time. If any changes detect means it will automatically compile and browser will reloaded.
84-
85-
```
21+
```bash
8622
gulp serve
8723
```
8824

89-
90-
**Access URLs:**
91-
92-
Local URL is works only in your machine.
93-
94-
```
95-
http://localhost:3000
96-
```
97-
98-
External URL is works in all locally connected LAN. (You can use to see sample browser in mobile).
99-
100-
```
101-
http://your-ip-address:3000
102-
```
103-
104-
**Note:** Here, The mentioned IP is your local machine IP Address.
25+
3. Open your web browser and navigate to the specified localhost address to view the samples.

config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@
111111
"common",
112112
"sys",
113113
"appbar",
114+
"textarea",
114115
null
115116
]
116117
}

index.html

Lines changed: 38 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@
1717
<!-- End Google Tag Manager -->
1818
<meta charset="utf-8" />
1919
<title>Demos, Examples of Syncfusion JavaScript (ES5) UI Controls</title>
20-
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
20+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
2121
<meta name="description"
2222
content="Explore and learn Syncfusion JavaScript (ES5) UI controls library using large collection of feature-wise examples for each components." />
23-
<meta http-equiv="x-ua-compatible" content="ie=edge" />
2423
<meta name="author" content="Syncfusion" />
2524
<link rel="shortcut icon" href="favicon.ico" />
2625
<link rel="manifest" href="./manifest.webmanifest">
@@ -78,7 +77,7 @@
7877
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-W8WD8WN" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
7978
<!-- End Google Tag Manager (noscript) -->
8079
<div hidden id="sync-analytics" data-queue="EJ2 - Javascript (ES5) - Demos"></div>
81-
<aside id='left-sidebar'>
80+
<aside id='left-sidebar' role="complementary" aria-labelledby="sb-toggle-left">
8281
<div class='sb-left-pane e-view'>
8382
<div class="sb-left-pane-header">
8483
<div class="sb-header-top">
@@ -88,12 +87,12 @@
8887
</div>
8988
</div>
9089
</div>
91-
<div class="sb-home" onclick="document.getElementById('sb-home').click()">
90+
<div class="sb-home" role="button" tabindex="0" aria-label="Essential JS2 home page" onclick="document.getElementById('sb-home').click()">
9291
<div class="sb-home-link sb-icons sb-icon-Home"></div>
9392
<div class="sb-home-text">
9493
<span>HOME</span>
9594
</div>
96-
<a id="sb-home" href="https://ej2.syncfusion.com/home/javascript.html" aria-label="Sample home page"></a>
95+
<a id="sb-home" href="https://ej2.syncfusion.com/home/javascript.html" aria-label="Essential JS2 home page"></a>
9796
</div>
9897
<div class='sb-control-navigation'>
9998
<div id="controlTree" class='e-view'></div>
@@ -135,12 +134,12 @@
135134
<div class='sb-header-item sb-table-cell'>
136135
<div id="sb-toggle-left" role="button" tabindex="0"
137136
class="sb-slide-nav sb-icons toggle-active sb-icon-Hamburger"
138-
aria-label="toggle all controls navigation" title='toggle leftpane'></div>
137+
aria-label="Toggle all controls navigation" aria-controls="left-sidebar" title='toggle left pane'></div>
139138
</div>
140139
<div class='sb-header-item sb-table-cell'>
141140
<div id='sb-header-text' class='e-sb-header-text'>
142141
<span class='sb-header-text-left'>Essential Studio for</span>
143-
<span class='sb-header-text-right'>JavaScript (ES5)</span>
142+
<span class='sb-header-text-right' role="button" tabindex="0">JavaScript (ES5)</span>
144143
</div>
145144
</div>
146145
<div class='sb-header-item sb-table-cell sb-lang-toggler-wrapper'>
@@ -161,7 +160,7 @@
161160
<span class="sb-header-text-left">CHOOSE THEME</span>
162161
</div>
163162
<div class="sb-theme-switcher-wrapper">
164-
<span id="sb-theme-switcher" class="sb-theme-switch sb-icons sb-icon-Dropdown"></span>
163+
<span id="sb-theme-switcher" class="sb-theme-switch sb-icons sb-icon-Dropdown" role="presentation" aria-label="Theme selection"></span>
165164
</div>
166165
</div>
167166
</div>
@@ -180,17 +179,17 @@
180179
<div class="sb-header-item sb-table-cell sb-header-settings sb-icons"></div>
181180
<div class="sb-header-splitter sb-download-splitter"></div>
182181
<div class='sb-header-item sb-table-cell sb-download-wrapper'>
183-
<a href='https://www.syncfusion.com/downloads/essential-js2' target="_blank" aria-label="Download Free Trail">
182+
<a href='https://www.syncfusion.com/downloads?tag=es-seo-ej2-javascript-es5-demo-menu-trail' target="_blank" aria-label="Free Trail (Opens in a new window)">
184183
<button id='download-now' class='sb-download-btn'>
185184
<span class='sb-download-text'>FREE TRIAL</span>
186185
</button>
187186
</a>
188-
<a href='https://www.npmjs.com/search?q=ej2-javascript' target="_blank" aria-label="Install NPM">
187+
<!-- <a href='https://www.npmjs.com/search?q=ej2-javascript' target="_blank" aria-label="Install NPM">
189188
<button class='sb-npm-btn'>
190189
<img class="npm-svg" src="styles/images/NPM.svg" alt="npm icon"><span
191190
class="doc-npm-link">Install NPM</span>
192191
</button>
193-
</a>
192+
</a> -->
194193
</div>
195194
</div>
196195

@@ -199,6 +198,9 @@
199198
<div id='sb-switcher-popup' role='navigation' class='sb-switch-popup'>
200199
<ul id='switch-sb' role="list">
201200
<li class='sb-current' role="listiem">JavaScript (ES5)</li>
201+
<li>
202+
<a id='nextjs'>Next.js</a>
203+
</li>
202204
<li>
203205
<a id='angular'>Angular</a>
204206
</li>
@@ -384,8 +386,8 @@
384386
</div>
385387
</div>
386388
<div class='sb-desktop-wrapper'>
387-
<div id='component-name' role='header' class='sb-component-name sb-rightpane-padding'>
388-
<h1 class='sb-sample-text' role="heading" aria-level="1">Chart</h1>
389+
<div id='component-name' class='sb-component-name sb-rightpane-padding'>
390+
<h1 class='sb-sample-text' aria-level="1" role="heading">Data Grid</h1>
389391
</div>
390392
<div id='sample-bread-crumb' class='sb-bread-crumb sb-rightpane-padding'>
391393
<div class='sb-bread-crumb-text'>
@@ -396,8 +398,7 @@ <h1 class='sb-sample-text' role="heading" aria-level="1">Chart</h1>
396398
<div class='crumb-sample '></div>
397399
</div>
398400

399-
<a id="sb-home" href="https://ej2.syncfusion.com/home/javascript.html" aria-label="Sample home page"></a>
400-
</div>
401+
401402
<div class='sb-action-description sb-rightpane-padding'></div>
402403
<div class='sb-content-tab' id='content-tab'>
403404
<div id="sb-content" class='sb-content-section'>
@@ -425,20 +426,6 @@ <h1 class='sb-sample-text' role="heading" aria-level="1">Chart</h1>
425426
<div>
426427
<div class='sb-source-section'>
427428
<div id='sb-source-tab' class="">
428-
<!-- <div id='sb-content-header' class="e-tab-header sb-content-tab-header">
429-
<div>
430-
<span class="sb-js-snippet-header"></span> jsfileName </div>
431-
<div>
432-
<span class="sb-html-snippet-header"></span> htmlfileName </div>
433-
</div>
434-
<div class="e-content sb-sample-content-area">
435-
<div>
436-
<div id="js-src-tab" class="js-source-content sb-src-code javascript">js Content</div>
437-
</div>
438-
<div>
439-
<div id="html-src-tab" class="html-source-content sb-src-code xml">html Content</div>
440-
</div>
441-
</div> -->
442429
</div>
443430
</div>
444431
</div>
@@ -462,58 +449,63 @@ <h1 class='sb-sample-text' role="heading" aria-level="1">Chart</h1>
462449
</div>
463450
<div class='description-section sb-rightpane-padding'>
464451
</div>
465-
<div class="banner-wrapper">
466-
<div id='banner-image' class="banner-img">
452+
<div class="ad-wrapper">
453+
<div id='ad-image' class="ad-img">
467454
<div class="row">
468455
<div class="col-sm-12">
469456
<div class="col-sm-12">
470-
<div id="banner-head" class="banner-header">Transform your JavaScript web apps today with Syncfusion Javascript controls</div>
457+
<div id="ad-banner-head" class="ad-header">Transform your JavaScript web
458+
apps today with Syncfusion Javascript controls</div>
471459
</div>
472460
<div class="col-sm-12 cnt-area">
473461
<div class="content-area">
474-
<div class="banner-cnt-pt">
475-
<div class="banner-cnt-icon click-icon sb-icons sb-icon-icon-selection"></div>
476-
<div class="cnt-text">80+ high-performance and responsive UI components</div>
462+
<div class="ad-cnt-pt">
463+
<div class="ad-cnt-icon click-icon sb-icons sb-icon-icon-selection">
464+
</div>
465+
<div class="cnt-text">80+ high-performance and responsive UI components
466+
</div>
477467
</div>
478-
<div class="banner-cnt-pt">
479-
<div class="banner-cnt-icon click-icon sb-icons sb-icon-icon-selection"></div>
468+
<div class="ad-cnt-pt">
469+
<div class="ad-cnt-icon click-icon sb-icons sb-icon-icon-selection">
470+
</div>
480471
<div class="cnt-text">Dedicated support</div>
481472
</div>
482-
<div class="banner-cnt-pt">
483-
<div class="banner-cnt-icon click-icon sb-icons sb-icon-icon-selection"></div>
473+
<div class="ad-cnt-pt">
474+
<div class="ad-cnt-icon click-icon sb-icons sb-icon-icon-selection">
475+
</div>
484476
<div class="cnt-text">Hassle-free licensing</div>
485477
</div>
486478
</div>
487479
<a style="color:#ffff;text-decoration:none;"
488-
href="https://www.syncfusion.com/downloads/essential-js2" aria-label="Try it for free">
480+
href="https://www.syncfusion.com/downloads?tag=es-seo-ej2-javascript-es5-demo-ads-trail" aria-label="TRY IT FOR FREE (Opens in a new window)">
489481
<div class="free-trial">TRY IT FOR FREE</div>
490482
</a>
491483
</div>
492484
</div>
493-
485+
494486
</div>
495487
</div>
496488
</div>
497489
<div class="sb-footer">
498490
<div class="sb-footer-left">
499491
<div class="sb-footer-links">
500-
<a href="https://ej2.syncfusion.com/javascript/documentation/" target="_blank" aria-label="Documentation link">
492+
<a href="https://ej2.syncfusion.com/javascript/documentation/" target="_blank" aria-label="Documentation (Opens in a new window)">
501493
<div class="sb-footer-link">Documentation</div>
502494
</a>
503-
<a href="https://www.syncfusion.com/forums/essential-js2" target="_blank" aria-label="Forum link">
495+
<a href="https://www.syncfusion.com/forums/essential-js2" target="_blank" aria-label="Forum (Opens in a new window)">
504496
<div class="sb-footer-link">Forum</div>
505497
</a>
506-
<a href="https://syncfusion.com/blogs" target="_blank" aria-label="Blog link">
498+
<a href="https://syncfusion.com/blogs" target="_blank" aria-label="Blog (Opens in a new window)">
507499
<div class="sb-footer-link">Blog</div>
508500
</a>
509-
<a href="https://www.syncfusion.com/kb" target="_blank" aria-label="Knowledge base">
501+
<a href="https://www.syncfusion.com/kb" target="_blank" aria-label="Knowledge base (Opens in a new window)">
510502
<div class="sb-footer-link">Knowledge Base</div>
511503
</a>
512504
</div>
513505
<div class="sb-footer-copyright"></div>
514506
</div>
515507
<div class="sb-footer-logo">
516-
<a href="https://www.syncfusion.com/" target="_blank" aria-label="Sample footer logo">
508+
<a href="https://www.syncfusion.com/" target="_blank" aria-label="Syncfusion logo">
517509
<div class="sb-footer-logo-icon"></div>
518510
</a>
519511
</div>

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"name": "@syncfusion/ej2-javascript-samples",
3-
"version": "24.2.3",
3+
"version": "25.1.35",
44
"description": "Examples of JavaScript (ES5) UI Controls",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",
77
"dependencies": {
88
"@syncfusion/ej2": "*",
9-
"crossroads": "^0.12.2",
10-
"hasher": "^1.2.0",
11-
"fuse.js": "3.2.0",
12-
"tributejs": "^3.7.3"
9+
"crossroads": "0.12.2",
10+
"hasher": "1.2.0",
11+
"fuse.js": "7.0.0",
12+
"tributejs": "5.1.3"
1313
},
1414
"devDependencies": {
1515
"@syncfusion/ej2-react-notifications": "*",

0 commit comments

Comments
 (0)