-
-
+
+
...Loading
diff --git a/src/app/components/grid/rich-grid.component.ts b/src/app/components/grid/rich-grid.component.ts
index a4865ca..ff4498b 100644
--- a/src/app/components/grid/rich-grid.component.ts
+++ b/src/app/components/grid/rich-grid.component.ts
@@ -39,6 +39,7 @@ export class RichGridComponent {
public boolean: BooleanSelectList[];
public isLoading: boolean = false;
public isBootstrapping: boolean = true;
+ public isSelected: boolean = true;
private columnDefs: any[];
private gridOptions: GridOptions;
@@ -73,7 +74,6 @@ export class RichGridComponent {
this.gridOptions.api.refreshVirtualPageCache();
});
}
-
setRowData(allOfTheData) {
let dataSource = {
rowCount: null, // behave as infinite scroll
@@ -121,13 +121,11 @@ export class RichGridComponent {
{
headerName: 'ID',
field: 'busStopId',
- width: 150
},
{
headerName: 'Назва дороги',
field: 'roadId',
editable: true,
- width: 150,
cellEditorFramework: EditorComponent,
cellRendererFramework: RendererComponent,
cellEditorParams: {
@@ -140,7 +138,6 @@ export class RichGridComponent {
headerName: 'Область',
field: 'regionId',
editable: true,
- width: 150,
cellEditorFramework: EditorComponent,
cellRendererFramework: RendererComponent,
cellEditorParams: {
@@ -153,19 +150,16 @@ export class RichGridComponent {
headerName: 'Місцезнаходження, км+ справа',
field: 'locationRight',
editable: true,
- width: 150
},
{
headerName: 'Місцезнаходження, км+ зліва',
field: 'locationLeft',
editable: true,
- width: 150
},
{
headerName: 'Технічний стан',
field: 'stateCommonId',
editable: true,
- width: 150,
cellEditorFramework: EditorComponent,
cellRendererFramework: RendererComponent,
cellEditorParams: {
@@ -178,7 +172,6 @@ export class RichGridComponent {
headerName: 'Наявність туалету',
field: 'toiletAvailability',
editable: true,
- width: 150,
cellEditorFramework: EditorComponent,
cellRendererFramework: RendererComponent,
cellEditorParams: {
diff --git a/src/app/helpers/editor.component.ts b/src/app/helpers/editor.component.ts
index eb4aa0d..d090145 100644
--- a/src/app/helpers/editor.component.ts
+++ b/src/app/helpers/editor.component.ts
@@ -5,16 +5,17 @@ import { AgEditorComponent } from 'ag-grid-ng2/main';
@Component({
selector: 'editor-cell',
template: `
-
-
- {{item[this.params.labelCol]}}
-
-
+
+
+
+ {{item[this.params.labelCol]}}
+
+
+
`
})
export class EditorComponent implements AgEditorComponent, AfterViewInit {
@ViewChild('container', {read: ViewContainerRef}) public container;
- @ViewChild('container') public child;
public item: Object = null;
public data: Object[];
private params: any;
--
libgit2 0.21.4