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

include DevExpress (.config) to mapping #57

Closed
StephanHartmann opened this issue Aug 1, 2016 · 2 comments
Closed

include DevExpress (.config) to mapping #57

StephanHartmann opened this issue Aug 1, 2016 · 2 comments
Assignees
Labels

Comments

@StephanHartmann
Copy link

According to your DevExtreme documentation I have to call
DevExpress.config({ defaultCurrency: 'EUR' });
for setting another default currency than USD.

Is it possible to include this DevExpress object in your angular 2 mappings?

It would be great if I can import it like
import { DevExpress} from 'devextreme-angular2';
and use it as described.

If this is not possible, how can I use it instead (Angular 2 with TypeScript)?

@dxbykov
Copy link
Contributor

dxbykov commented Aug 2, 2016

Hi,

Once we fix the #16 issue, it will be possible to import the config as follows:

import config from 'devextreme/core/config'

As a temporary workaround, you can declare the DevExpress namespace:

declare var DevExpress: any;

and use it as follows:

DevExpress.config({ defaultCurrency: 'EUR' });

@kvet kvet self-assigned this Oct 20, 2016
@kvet
Copy link
Contributor

kvet commented Oct 28, 2016

Hi! Issue #16 has been fixed in 16.2.1-alpha.1. You can import parts of DevExtreme functionality as mentioned above:

import config from 'devextreme/core/config'

The whole modules structure can be found here

@kvet kvet closed this as completed Oct 28, 2016
marcwittke pushed a commit to marcwittke/devextreme-angular that referenced this issue Jan 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants