Skip to content

Commit aafab8c

Browse files
authored
Add files via upload
1 parent b3d1240 commit aafab8c

28 files changed

+741
-2
lines changed

README.md

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,36 @@
1-
# ej2-angular-6-multiselct-dropdown
2-
A quick start project that helps you to create an Angular 6 MultiSelect Dropdown with minimal code configuration.
1+
# Syncfusion Angular 6 MultiSelect Dropdown Quick Start Project
2+
3+
A quick start project that helps you to create the Syncfusion Angular 6 MultiSelect Dropdown with minimal code configuration.
4+
5+
![Angular 6 MultiSelect Dropdown](multiselect-dropdown.png)
6+
7+
## MultiSelect Dropdown features covered in this Project
8+
9+
This is an Angular 6 project created using [Angular CLI](https://github.com/angular/angular-cli) 6.2.7. The MultiSelect Dropdown features included in this project are as follows.
10+
* Angular 6 MultiSelect Dropdown initialization.
11+
* Data binding to the MultiSelect Dropdown.
12+
* Setting the value on initial rendering.
13+
* Getting the value on button submit action.
14+
15+
## How to run this application?
16+
To run this application, you need to first clone the `ej2-angular-6-multiselct-dropdown` repository and then navigate to its appropriate path where it has been located in your system.
17+
18+
To do so, open the command prompt and run the below commands one after the other.
19+
20+
```
21+
git clone https://github.com/SyncfusionSamples/ej2-angular-6-multiselct-dropdown.git
22+
cd ej2-angular-6-multiselct-dropdown
23+
```
24+
25+
## Installing
26+
Once done with downloading, next you need to install the necessary packages required to run this application locally. The `npm install` command will install all the needed angular packages into your current project and to do so, run the below command.
27+
28+
```
29+
npm install
30+
```
31+
## Running on development server
32+
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
33+
34+
## Further help
35+
36+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).

angular.json

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"ej2-angular6-multiselect": {
7+
"root": "",
8+
"sourceRoot": "src",
9+
"projectType": "application",
10+
"prefix": "app",
11+
"schematics": {},
12+
"architect": {
13+
"build": {
14+
"builder": "@angular-devkit/build-angular:browser",
15+
"options": {
16+
"outputPath": "dist/ej2-angular6-multiselect",
17+
"index": "src/index.html",
18+
"main": "src/main.ts",
19+
"polyfills": "src/polyfills.ts",
20+
"tsConfig": "src/tsconfig.app.json",
21+
"assets": [
22+
"src/favicon.ico",
23+
"src/assets"
24+
],
25+
"styles": [
26+
"src/styles.css"
27+
],
28+
"scripts": []
29+
},
30+
"configurations": {
31+
"production": {
32+
"fileReplacements": [
33+
{
34+
"replace": "src/environments/environment.ts",
35+
"with": "src/environments/environment.prod.ts"
36+
}
37+
],
38+
"optimization": true,
39+
"outputHashing": "all",
40+
"sourceMap": false,
41+
"extractCss": true,
42+
"namedChunks": false,
43+
"aot": true,
44+
"extractLicenses": true,
45+
"vendorChunk": false,
46+
"buildOptimizer": true
47+
}
48+
}
49+
},
50+
"serve": {
51+
"builder": "@angular-devkit/build-angular:dev-server",
52+
"options": {
53+
"browserTarget": "ej2-angular6-multiselect:build"
54+
},
55+
"configurations": {
56+
"production": {
57+
"browserTarget": "ej2-angular6-multiselect:build:production"
58+
}
59+
}
60+
},
61+
"extract-i18n": {
62+
"builder": "@angular-devkit/build-angular:extract-i18n",
63+
"options": {
64+
"browserTarget": "ej2-angular6-multiselect:build"
65+
}
66+
},
67+
"test": {
68+
"builder": "@angular-devkit/build-angular:karma",
69+
"options": {
70+
"main": "src/test.ts",
71+
"polyfills": "src/polyfills.ts",
72+
"tsConfig": "src/tsconfig.spec.json",
73+
"karmaConfig": "src/karma.conf.js",
74+
"styles": [
75+
"src/styles.css"
76+
],
77+
"scripts": [],
78+
"assets": [
79+
"src/favicon.ico",
80+
"src/assets"
81+
]
82+
}
83+
},
84+
"lint": {
85+
"builder": "@angular-devkit/build-angular:tslint",
86+
"options": {
87+
"tsConfig": [
88+
"src/tsconfig.app.json",
89+
"src/tsconfig.spec.json"
90+
],
91+
"exclude": [
92+
"**/node_modules/**"
93+
]
94+
}
95+
}
96+
}
97+
},
98+
"ej2-angular6-multiselect-e2e": {
99+
"root": "e2e/",
100+
"projectType": "application",
101+
"architect": {
102+
"e2e": {
103+
"builder": "@angular-devkit/build-angular:protractor",
104+
"options": {
105+
"protractorConfig": "e2e/protractor.conf.js",
106+
"devServerTarget": "ej2-angular6-multiselect:serve"
107+
},
108+
"configurations": {
109+
"production": {
110+
"devServerTarget": "ej2-angular6-multiselect:serve:production"
111+
}
112+
}
113+
},
114+
"lint": {
115+
"builder": "@angular-devkit/build-angular:tslint",
116+
"options": {
117+
"tsConfig": "e2e/tsconfig.e2e.json",
118+
"exclude": [
119+
"**/node_modules/**"
120+
]
121+
}
122+
}
123+
}
124+
}
125+
},
126+
"defaultProject": "ej2-angular6-multiselect"
127+
}

e2e/protractor.conf.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// Protractor configuration file, see link for more information
2+
// https://github.com/angular/protractor/blob/master/lib/config.ts
3+
4+
const { SpecReporter } = require('jasmine-spec-reporter');
5+
6+
exports.config = {
7+
allScriptsTimeout: 11000,
8+
specs: [
9+
'./src/**/*.e2e-spec.ts'
10+
],
11+
capabilities: {
12+
'browserName': 'chrome'
13+
},
14+
directConnect: true,
15+
baseUrl: 'http://localhost:4200/',
16+
framework: 'jasmine',
17+
jasmineNodeOpts: {
18+
showColors: true,
19+
defaultTimeoutInterval: 30000,
20+
print: function() {}
21+
},
22+
onPrepare() {
23+
require('ts-node').register({
24+
project: require('path').join(__dirname, './tsconfig.e2e.json')
25+
});
26+
jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
27+
}
28+
};

e2e/src/app.e2e-spec.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { AppPage } from './app.po';
2+
3+
describe('workspace-project App', () => {
4+
let page: AppPage;
5+
6+
beforeEach(() => {
7+
page = new AppPage();
8+
});
9+
10+
it('should display welcome message', () => {
11+
page.navigateTo();
12+
expect(page.getParagraphText()).toEqual('Welcome to ej2-angular6-multiselect!');
13+
});
14+
});

e2e/src/app.po.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { browser, by, element } from 'protractor';
2+
3+
export class AppPage {
4+
navigateTo() {
5+
return browser.get('/');
6+
}
7+
8+
getParagraphText() {
9+
return element(by.css('app-root h1')).getText();
10+
}
11+
}

e2e/tsconfig.e2e.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"extends": "../tsconfig.json",
3+
"compilerOptions": {
4+
"outDir": "../out-tsc/app",
5+
"module": "commonjs",
6+
"target": "es5",
7+
"types": [
8+
"jasmine",
9+
"jasminewd2",
10+
"node"
11+
]
12+
}
13+
}

multiselect-dropdown.png

11.4 KB
Loading

package.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"name": "ej2-angular6-multiselect",
3+
"version": "0.0.0",
4+
"scripts": {
5+
"ng": "ng",
6+
"start": "ng serve",
7+
"build": "ng build",
8+
"test": "ng test",
9+
"lint": "ng lint",
10+
"e2e": "ng e2e"
11+
},
12+
"private": true,
13+
"dependencies": {
14+
"@angular/animations": "^6.1.0",
15+
"@angular/common": "^6.1.0",
16+
"@angular/compiler": "^6.1.0",
17+
"@angular/core": "^6.1.0",
18+
"@angular/forms": "^6.1.0",
19+
"@angular/http": "^6.1.0",
20+
"@angular/platform-browser": "^6.1.0",
21+
"@angular/platform-browser-dynamic": "^6.1.0",
22+
"@angular/router": "^6.1.0",
23+
"@syncfusion/ej2-angular-dropdowns": "^16.3.34",
24+
"core-js": "^2.5.4",
25+
"rxjs": "~6.2.0",
26+
"zone.js": "~0.8.26"
27+
},
28+
"devDependencies": {
29+
"@angular-devkit/build-angular": "~0.8.0",
30+
"@angular/cli": "~6.2.7",
31+
"@angular/compiler-cli": "^6.1.0",
32+
"@angular/language-service": "^6.1.0",
33+
"@types/jasmine": "~2.8.8",
34+
"@types/jasminewd2": "~2.0.3",
35+
"@types/node": "~8.9.4",
36+
"codelyzer": "~4.3.0",
37+
"jasmine-core": "~2.99.1",
38+
"jasmine-spec-reporter": "~4.2.1",
39+
"karma": "~3.0.0",
40+
"karma-chrome-launcher": "~2.2.0",
41+
"karma-coverage-istanbul-reporter": "~2.0.1",
42+
"karma-jasmine": "~1.1.2",
43+
"karma-jasmine-html-reporter": "^0.2.2",
44+
"protractor": "~5.4.0",
45+
"ts-node": "~7.0.0",
46+
"tslint": "~5.11.0",
47+
"typescript": "~2.9.2"
48+
}
49+
}

src/app/app.component.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* You can add global styles to this file, and also import other style files */

src/app/app.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<ejs-multiselect id='localData' #local [dataSource]='countries' [fields]='localFields' [placeholder]='localWaterMark'></ejs-multiselect>

0 commit comments

Comments
 (0)