Skip to content

Commit d7fb911

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 14c8624 + e180b01 commit d7fb911

File tree

4 files changed

+65
-17
lines changed

4 files changed

+65
-17
lines changed

dist/npm/README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,42 @@ There are two mandatory attributes that need to be set to an Ignite UI control c
7373

7474
In this example `options` attribute points to `gridOptions` property on the application compoment class and `widgetId` points to the `id` property.
7575

76+
### Configuring Top Level Control Options
77+
78+
All top level options are allowed to be set as attributes of an Ignite UI control custom tag. In this case `options` attribute is not mandatory,
79+
but it is allowed. And if both - `options` and top-level attributes are combined, top-level attributes will override `options`,
80+
when there are overlapping properties. Also changing top-level attribute will apply the change to the widget, only if the option is settable.
81+
82+
#### Example:
83+
84+
@Component({
85+
selector: 'my-app',
86+
template: `<ig-grid
87+
[widgetId]='id'
88+
[width]='w'
89+
[autoCommit]='true'
90+
[dataSource]='data'
91+
[height]='h'
92+
[autoGenerateColumns]='true'
93+
>
94+
</ig-grid>`,
95+
directives: [IgGridComponent]
96+
})
97+
export class AppComponent {
98+
private id: string;
99+
private data: any;
100+
private w: string;
101+
private h: string;
102+
private pKey: string;
103+
104+
constructor() {
105+
this.data = Northwind.getData();
106+
this.id ='grid1';
107+
this.w = '100%';
108+
this.h = '400px';
109+
this.pKey = 'ProductID';
110+
}
111+
}
76112

77113
### Handling events
78114

dist/npm/package.json

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "igniteui-angular2",
3-
"version": "1.0.0",
3+
"version": "1.0.2",
44
"description" : "A packaged version of IgniteUI components for Angular2",
55
"license": "MIT",
66
"repository": {
@@ -22,12 +22,24 @@
2222
"data grids"
2323
],
2424
"dependencies": {
25-
"angular2": "2.0.0-beta.14",
26-
"systemjs": "0.19.25",
25+
"@angular/common": "2.0.0-rc.3",
26+
"@angular/compiler": "2.0.0-rc.3",
27+
"@angular/core": "2.0.0-rc.3",
28+
"@angular/http": "2.0.0-rc.3",
29+
"@angular/platform-browser": "2.0.0-rc.3",
30+
"@angular/platform-browser-dynamic": "2.0.0-rc.3",
31+
"@angular/router": "2.0.0-rc.2",
32+
"@angular/router-deprecated": "2.0.0-rc.2",
33+
"@angular/upgrade": "2.0.0-rc.3",
34+
35+
"systemjs": "0.19.27",
2736
"es6-shim": "^0.35.0",
28-
"reflect-metadata": "0.1.2",
29-
"rxjs": "5.0.0-beta.2",
30-
"zone.js": "0.6.6"
37+
"reflect-metadata": "^0.1.3",
38+
"rxjs": "5.0.0-beta.6",
39+
"zone.js": "^0.6.12",
40+
41+
"angular2-in-memory-web-api": "0.0.12",
42+
"bootstrap": "^3.3.6"
3143
},
3244
"devDependencies": {},
3345
"scripts": {}

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@
77
"url": "https://github.com/IgniteUI/igniteui-angular2.git"
88
},
99
"dependencies": {
10-
"@angular/common": "2.0.0-rc.1",
11-
"@angular/compiler": "2.0.0-rc.1",
12-
"@angular/core": "2.0.0-rc.1",
13-
"@angular/http": "2.0.0-rc.1",
14-
"@angular/platform-browser": "2.0.0-rc.1",
15-
"@angular/platform-browser-dynamic": "2.0.0-rc.1",
16-
"@angular/router": "2.0.0-rc.1",
17-
"@angular/router-deprecated": "2.0.0-rc.1",
18-
"@angular/upgrade": "2.0.0-rc.1",
10+
"@angular/common": "2.0.0-rc.3",
11+
"@angular/compiler": "2.0.0-rc.3",
12+
"@angular/core": "2.0.0-rc.3",
13+
"@angular/http": "2.0.0-rc.3",
14+
"@angular/platform-browser": "2.0.0-rc.3",
15+
"@angular/platform-browser-dynamic": "2.0.0-rc.3",
16+
"@angular/router": "2.0.0-rc.2",
17+
"@angular/router-deprecated": "2.0.0-rc.2",
18+
"@angular/upgrade": "2.0.0-rc.3",
1919

2020
"systemjs": "0.19.27",
2121
"es6-shim": "^0.35.0",
2222
"reflect-metadata": "^0.1.3",
2323
"rxjs": "5.0.0-beta.6",
2424
"zone.js": "^0.6.12",
2525

26-
"angular2-in-memory-web-api": "0.0.7",
26+
"angular2-in-memory-web-api": "0.0.12",
2727
"bootstrap": "^3.3.6"
2828
},
2929
"devDependencies": {

systemjs.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(function(global) {
2-
var ngVer = '@2.0.0-rc.1';
2+
var ngVer = '@2.0.0-rc.3';
33
// map tells the System loader where to look for things
44
var map = {
55
'app': 'app', // 'dist',

0 commit comments

Comments
 (0)