Skip to content

Commit e180b01

Browse files
authored
Merge pull request #56 from skrustev/master
Update distribution folder for release of 1.0.2 version.
2 parents 8ee3545 + 343ef6f commit e180b01

File tree

2 files changed

+54
-6
lines changed

2 files changed

+54
-6
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": {}

0 commit comments

Comments
 (0)