Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a convenient way to bind 'deep' widget options #5

Closed
dxbykov opened this issue Jun 13, 2016 · 1 comment
Closed

Provide a convenient way to bind 'deep' widget options #5

dxbykov opened this issue Jun 13, 2016 · 1 comment

Comments

@dxbykov
Copy link
Contributor

dxbykov commented Jun 13, 2016

For instance, I have a chart widget with its 'series' option bound:

<dx-chart [dataSource]="dataSource" [series]="series"></dx-chart>
series = {
    argumentField: "day",
    valueField: "oranges",
    name: "My oranges",
    type: "bar",
    color: '#ffa500'
}

Then, I would like to update the 'series.name' property and see the chart updated in the UI. In this case, I have to change the reference to the whole 'series' object in order to force the Angular 2 change detection mechanism work.

@dxbykov dxbykov added this to the 16.2-alpha.2 milestone Nov 9, 2016
@dxbykov
Copy link
Contributor Author

dxbykov commented Nov 9, 2016

In 16.2.1-alpha.2 the configuration components concept was introduced. For instance, you can bind the 'series.name' property as follows:

<dx-chart [dataSource]="dataSource">
    <dxo-series 
        argumentField="day"
        valueField="oranges"
        [name]="name"
        type="bar"
        color=”#ffa500”>
    </dxo-series>
</dx-chart>

@dxbykov dxbykov closed this as completed Nov 9, 2016
marcwittke pushed a commit to marcwittke/devextreme-angular that referenced this issue Jan 28, 2022
* Use routes for navigation

* Remove icon

* generate navigation for treeview

* Fix indents

* Add HomeComponent to routes

* Add export navigation

* Add a new line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant