Skip to content

Commit 7486061

Browse files
author
pipeline
committed
v20.1.47 is released
1 parent fbf46dc commit 7486061

File tree

531 files changed

+5771
-5967
lines changed

Some content is hidden

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

531 files changed

+5771
-5967
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ej2-angular-samples",
3-
"version": "19.4.38",
3+
"version": "20.1.47",
44
"private": true,
55
"dependencies": {
66
"@angular/animations": "~10.0.0",

sampleOrder.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,17 @@
120120
"tile": "Tile View"
121121
}
122122
},
123+
"carousel": {
124+
"ControlName": "Carousel",
125+
"Samples": {
126+
"overview": "Overview",
127+
"default": "Default Functionalities",
128+
"templates": "Templates",
129+
"data-binding": "Data Binding",
130+
"keyboard-navigation": "Keyboard Navigation",
131+
"api": "API"
132+
}
133+
},
123134
"chart": {
124135
"ControlName": "Chart",
125136
"Samples": {

src/app/accordion/accordion.component.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,4 +196,9 @@
196196
text-overflow: ellipsis;
197197
font-weight: bold;
198198
font-size: 16px;
199+
}
200+
201+
.key-class {
202+
display: inline-block;
203+
width: 130px;
199204
}

src/app/accordion/accordion.module.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ import { AccordionModule } from '@syncfusion/ej2-angular-navigations';
66
import { DefaultAccordionComponent } from './default.component';
77
import { AjaxAccordionComponent } from './ajax.component';
88
import { IconAccordionComponent } from './icon.component';
9+
import { KeyboardAccordionComponent } from './keyboard-interaction.component';
910

1011

1112
import { SharedModule } from '../common/shared.module';
1213
export const accordionAppRoutes: Object[] = [
1314
{ path: ':theme/accordion/default', component: DefaultAccordionComponent, name: 'Default Functionalities', description: 'The sample demonstrates that default functionalities of the Accordion component which works by expand and collapse action in Angular platform.', category: 'Accordion' },
1415
{ path: ':theme/accordion/ajax', component: AjaxAccordionComponent, name: 'Ajax Content', description: 'The sample demonstrates how to load the content to the Accordion component from external sources using Ajax library in Angular platform.', category: 'Accordion' },
1516
{ path: ':theme/accordion/icon', component: IconAccordionComponent, name: 'Icons', description: 'The sample demonstrates how to represent pane headers with an icon in Accordion component which populates from items collection in Angular platform.', category: 'Accordion' },
17+
{ path: ':theme/accordion/keyboard-interaction', component: KeyboardAccordionComponent, name: 'Keyboard Interaction', description: 'The sample showcases the keyboard shortcuts applicable on Accordion component in Angular platform.', category: 'Accordion' }
1618
];
1719

1820
export const accordionRouter: ModuleWithProviders<any> = RouterModule.forChild(accordionAppRoutes);
@@ -23,6 +25,7 @@ export const accordionRouter: ModuleWithProviders<any> = RouterModule.forChild(a
2325
DefaultAccordionComponent,
2426
AjaxAccordionComponent,
2527
IconAccordionComponent,
28+
KeyboardAccordionComponent
2629
],
2730
schemas: [CUSTOM_ELEMENTS_SCHEMA]
2831
})

src/app/accordion/ajax-stackb.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/app/accordion/default-stackb.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/app/accordion/icon-stackb.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/app/accordion/keyboard-interaction-stackb.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { Component, ViewEncapsulation, Inject } from '@angular/core';
2+
3+
/**
4+
* Keyboard Interactions In Accordion Component.
5+
*/
6+
@Component({
7+
selector: 'control-content',
8+
templateUrl: 'keyboard-interaction.html',
9+
styleUrls: ['accordion.component.css'],
10+
encapsulation: ViewEncapsulation.None
11+
})
12+
export class KeyboardAccordionComponent {
13+
constructor( @Inject('sourceFiles') private sourceFiles: any) {
14+
sourceFiles.files = ['accordion.component.css'];
15+
}
16+
}
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
<div id="action-description">
2+
<p>
3+
This demo showcases the keyboard shortcuts applicable on <code>Accordion</code>.
4+
</p>
5+
</div>
6+
<div class="control-section accordion-control-section">
7+
<div class="e-sample-resize-container">
8+
<!-- Render the Accoridon Component -->
9+
<ejs-accordion>
10+
<e-accordionitems>
11+
<e-accordionitem expanded='true'>
12+
<ng-template #header>
13+
<div>ASP.NET</div>
14+
</ng-template>
15+
<ng-template #content>
16+
<div>Microsoft ASP.NET is a set of technologies in the Microsoft .NET Framework for building Web
17+
applications and XML Web
18+
services. ASP.NET pages execute on the server and generate markup such as HTML, WML, or XML that is sent
19+
to a desktop
20+
or mobile browser. ASP.NET pages use a compiled,event-driven programming model that improves performance
21+
and enables
22+
the separation of application logic and user interface.</div>
23+
</ng-template>
24+
</e-accordionitem>
25+
<e-accordionitem>
26+
<ng-template #header>
27+
<div>ASP.NET MVC</div>
28+
</ng-template>
29+
<ng-template #content>
30+
<div>The Model-View-Controller (MVC) architectural pattern separates an application into three main
31+
components: the model,
32+
the view, and the controller. The ASP.NET MVC framework provides an alternative to the ASP.NET Web Forms
33+
pattern for
34+
creating Web applications. The ASP.NET MVC framework is a lightweight, highly testable presentation
35+
framework that
36+
(as with Web Forms-based applications) is integrated with existing ASP.NET features, such as master pages
37+
and membership-based
38+
authentication.
39+
</div>
40+
</ng-template>
41+
</e-accordionitem>
42+
<e-accordionitem>
43+
<ng-template #header>
44+
<div>JavaScript</div>
45+
</ng-template>
46+
<ng-template #content>
47+
<div>JavaScript (JS) is an interpreted computer programming language.It was originally implemented as part
48+
of web browsers
49+
so that client-side scripts could interact with the user, control the browser, communicate asynchronously,
50+
and alter
51+
the document content that was displayed.More recently, however, it has become common in both game
52+
development and
53+
the creation of desktop applications.</div>
54+
</ng-template>
55+
</e-accordionitem>
56+
</e-accordionitems>
57+
</ejs-accordion>
58+
</div>
59+
</div>
60+
<div id="description">
61+
<i>Below key combinations can be used in Accordion to initiate various actions.</i>
62+
<ul>
63+
<li>
64+
<b>Focus</b>
65+
<ul>
66+
<li>
67+
<span class="key-class"><kbd>Alt</kbd> + <kbd>J</kbd></span>
68+
<span> - Focuses on the first component of the demo.</span>
69+
</li>
70+
<li>
71+
<span class="key-class"><kbd>Home</kbd></span>
72+
<span> - Focus the first Accordion header.</span>
73+
</li>
74+
<li>
75+
<span class="key-class"><kbd>End</kbd></span>
76+
<span> - Focus the last Accordion header.</span>
77+
</li>
78+
<li>
79+
<span class="key-class"><kbd>Down arrow</kbd></span>
80+
<span> - Focus the next Accordion header.</span>
81+
</li>
82+
<li>
83+
<span class="key-class"><kbd>Up arrow</kbd></span>
84+
<span> - Focus the previous Accordion header.</span>
85+
</li>
86+
</ul>
87+
</li>
88+
<li>
89+
<b>Expand and Collapse</b>
90+
<ul>
91+
<li>
92+
<span class="key-class"><kbd>Enter</kbd> or <kbd>Space</kbd></span>
93+
<span> - Expand and collapse when the focus is on the Accordion header.</span>
94+
</li>
95+
</ul>
96+
</li>
97+
</ul>
98+
</div>

0 commit comments

Comments
 (0)