Skip to content

Commit 047ba4f

Browse files
authored
Merge pull request #4 from vairamuthuR/master
config(EJ2-10016): commit for angular
2 parents 9351521 + df6c80c commit 047ba4f

File tree

2,027 files changed

+167075
-33931
lines changed

Some content is hidden

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

2,027 files changed

+167075
-33931
lines changed

src/accordion/accordion.module.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
import { NgModule, ModuleWithProviders, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
22
import { RouterModule } from '@angular/router';
33

4-
import { AccordionModule } from '@syncfusion/ej2-ng-navigations';
4+
import { AccordionModule } from '@syncfusion/ej2-angular-navigations';
55

66
import { DefaultAccordionComponent } from './default.component';
77
import { AjaxAccordionComponent } from './ajax.component';
88
import { IconAccordionComponent } from './icon.component';
9-
import { RtlAccordionComponent } from './rtl.component';
9+
import { RtlAccordionComponent } from './right-to-left.component';
1010

1111

1212
import { SharedModule } from '../common/shared.module';
1313
export const accordionAppRoutes: Object[] = [
14-
{ path: ':theme/accordion/default', component: DefaultAccordionComponent, name: 'Default Functionalities', category: 'Accordion' },
15-
{ path: ':theme/accordion/ajax', component: AjaxAccordionComponent, name: 'Ajax Content', category: 'Accordion' },
16-
{ path: ':theme/accordion/icon', component: IconAccordionComponent, name: 'Icons', category: 'Accordion' },
17-
{ path: ':theme/accordion/rtl', component: RtlAccordionComponent, name: 'RTL', category: 'Accordion' },
14+
{ path: ':theme/accordion/default', component: DefaultAccordionComponent, name: 'Default Functionalities', description: 'This demo for Essential JS2 Accordion control shows the default functionalities of the Accordion.', category: 'Accordion' },
15+
{ path: ':theme/accordion/ajax', component: AjaxAccordionComponent, name: 'Ajax Content', description: 'This demo for Essential JS2 Accordion control shows rendering accordion content from external source using ajax library.', category: 'Accordion' },
16+
{ path: ':theme/accordion/icon', component: IconAccordionComponent, name: 'Icons', description: 'This demo for Essential JS2 Accordion control shows the icon representation of the Accordion.', category: 'Accordion' },
17+
{ path: ':theme/accordion/right-to-left', component: RtlAccordionComponent, name: 'RTL', description: 'This demo for Essential JS2 Accordion control shows RTL mode of the Accordion.', category: 'Accordion' },
1818
];
1919

2020
export const accordionRouter: ModuleWithProviders = RouterModule.forChild(accordionAppRoutes);
File renamed without changes.

src/accordion/ajax-plnkr.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/accordion/ajax.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Component, AfterViewInit, ViewEncapsulation, Inject, ViewChild } from '@angular/core';
22
import { Ajax} from '@syncfusion/ej2-base';
33
import { ExpandEventArgs, Accordion} from '@syncfusion/ej2-navigations';
4-
import { AccordionComponent } from '@syncfusion/ej2-ng-navigations';
4+
import { AccordionComponent } from '@syncfusion/ej2-angular-navigations';
55

66
/**
77
* Accordion Ajax Sample
@@ -17,7 +17,7 @@ export class AjaxAccordionComponent implements AfterViewInit {
1717
public acrdn: AccordionComponent;
1818
public ajaxData: string;
1919
ngAfterViewInit(): void {
20-
let ajax: Ajax = new Ajax('./src/accordion/Ajax_content.html', 'GET', true);
20+
let ajax: Ajax = new Ajax('./src/accordion/ajax-content.html', 'GET', true);
2121
ajax.send().then();
2222
ajax.onSuccess = (data: string): void => {
2323
// Loading Accordion content on AJAX success

src/accordion/default-plnkr.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/accordion/default.html

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,44 @@
77
<div class="e-sample-resize-container">
88
<!-- Render the Accoridon Component -->
99
<ejs-accordion>
10-
<e-accordionitems>
11-
<e-accordionitem expanded='true' header='ASP.NET' content='Microsoft ASP.NET is a set of technologies in the Microsoft .NET Framework for building Web applications and XML Web services. ASP.NET pages execute on the server and generate markup such as HTML, WML, or XML that is sent to a desktop or mobile browser. ASP.NET pages use a compiled,event-driven programming model that improves performance and enables the separation of application logic and user interface.'></e-accordionitem>
12-
<e-accordionitem header='ASP.NET MVC' content='The Model-View-Controller (MVC) architectural pattern separates an application into three main components: the model, the view, and the controller. The ASP.NET MVC framework provides an alternative to the ASP.NET Web Forms pattern for creating Web applications. The ASP.NET MVC framework is a lightweight, highly testable presentation framework that (as with Web Forms-based applications) is integrated with existing ASP.NET features, such as master pages and membership-based authentication.'></e-accordionitem>
13-
<e-accordionitem header='JavaScript' content='JavaScript (JS) is an interpreted computer programming language.It was originally implemented as part of web browsers so that client-side scripts could interact with the user, control the browser, communicate asynchronously, and alter the document content that was displayed.More recently, however, it has become common in both game development and the creation of desktop applications.'></e-accordionitem>
14-
</e-accordionitems>
15-
</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 applications and XML Web
17+
services. ASP.NET pages execute on the server and generate markup such as HTML, WML, or XML that is sent to a desktop
18+
or mobile browser. ASP.NET pages use a compiled,event-driven programming model that improves performance and enables
19+
the separation of application logic and user interface.</div>
20+
</ng-template>
21+
</e-accordionitem>
22+
<e-accordionitem>
23+
<ng-template #header>
24+
<div>ASP.NET MVC</div>
25+
</ng-template>
26+
<ng-template #content>
27+
<div>The Model-View-Controller (MVC) architectural pattern separates an application into three main components: the model,
28+
the view, and the controller. The ASP.NET MVC framework provides an alternative to the ASP.NET Web Forms pattern for
29+
creating Web applications. The ASP.NET MVC framework is a lightweight, highly testable presentation framework that
30+
(as with Web Forms-based applications) is integrated with existing ASP.NET features, such as master pages and membership-based
31+
authentication.
32+
</div>
33+
</ng-template>
34+
</e-accordionitem>
35+
<e-accordionitem>
36+
<ng-template #header>
37+
<div>JavaScript</div>
38+
</ng-template>
39+
<ng-template #content>
40+
<div>JavaScript (JS) is an interpreted computer programming language.It was originally implemented as part of web browsers
41+
so that client-side scripts could interact with the user, control the browser, communicate asynchronously, and alter
42+
the document content that was displayed.More recently, however, it has become common in both game development and
43+
the creation of desktop applications.</div>
44+
</ng-template>
45+
</e-accordionitem>
46+
</e-accordionitems>
47+
</ejs-accordion>
1648
</div>
1749
</div>
1850
<div id="description">

src/accordion/icon-plnkr.json

Lines changed: 0 additions & 1 deletion
This file was deleted.
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+
* Accordion RTL Sample
5+
*/
6+
@Component({
7+
selector: 'control-content',
8+
templateUrl: 'right-to-left.html',
9+
styleUrls: ['accordion.component.css'],
10+
encapsulation: ViewEncapsulation.None
11+
})
12+
export class RtlAccordionComponent {
13+
constructor( @Inject('sourceFiles') private sourceFiles: any) {
14+
sourceFiles.files = ['accordion.component.css'];
15+
}
16+
}
File renamed without changes.

src/accordion/rtl-plnkr.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)