Skip to content

Commit 8a309ae

Browse files
fix nesteds
1 parent 594b53b commit 8a309ae

3 files changed

Lines changed: 13 additions & 1 deletion

File tree

packages/devextreme-angular/src/tokens/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { InjectionToken } from '@angular/core';
22

3-
export const PROPERTY_TOKEN_center = new InjectionToken<string>('property-token-center');
43
export const PROPERTY_TOKEN_items = new InjectionToken<string>('property-token-items');
54
export const PROPERTY_TOKEN_buttons = new InjectionToken<string>('property-token-buttons');
65
export const PROPERTY_TOKEN_toolbarItems = new InjectionToken<string>('property-token-toolbarItems');
@@ -41,3 +40,4 @@ export const PROPERTY_TOKEN_resources = new InjectionToken<string>('property-tok
4140
export const PROPERTY_TOKEN_views = new InjectionToken<string>('property-token-views');
4241
export const PROPERTY_TOKEN_layers = new InjectionToken<string>('property-token-layers');
4342
export const PROPERTY_TOKEN_legends = new InjectionToken<string>('property-token-legends');
43+
export const PROPERTY_TOKEN_center = new InjectionToken<string>('property-token-center');

packages/devextreme-angular/src/ui/drop-down-box/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ import { DxiDropDownBoxToolbarItemModule } from 'devextreme-angular/ui/drop-down
8585
import {
8686
PROPERTY_TOKEN_buttons,
8787
PROPERTY_TOKEN_toolbarItems,
88+
PROPERTY_TOKEN_items,
8889
} from 'devextreme-angular/tokens';
8990

9091

@@ -126,6 +127,11 @@ export class DxDropDownBoxComponent extends DxComponent implements OnDestroy, Co
126127
this._setChildren('toolbarItems', value);
127128
}
128129

130+
@ContentChildren(PROPERTY_TOKEN_items)
131+
set _itemsNestedItems(value: QueryList<CollectionNestedOption>) {
132+
this._setChildren('items', value);
133+
}
134+
129135
instance: DxDropDownBox = null;
130136

131137
/**

packages/devextreme-angular/src/ui/map/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ import {
5959
PROPERTY_TOKEN_markers,
6060
PROPERTY_TOKEN_routes,
6161
PROPERTY_TOKEN_locations,
62+
PROPERTY_TOKEN_center,
6263
} from 'devextreme-angular/tokens';
6364

6465

@@ -98,6 +99,11 @@ export class DxMapComponent extends DxComponent implements OnDestroy, OnChanges,
9899
this._setChildren('locations', value);
99100
}
100101

102+
@ContentChildren(PROPERTY_TOKEN_center)
103+
set _centerNestedItems(value: QueryList<CollectionNestedOption>) {
104+
this._setChildren('center', value);
105+
}
106+
101107
instance: DxMap = null;
102108

103109
/**

0 commit comments

Comments
 (0)