DevExtreme jQuery - EndpointSelector API
import { EndpointSelector } from "devextreme/common/data"
This object selects local or production OData service URL depending on whether the app's local or deployed version is running.
TypeScript
- import EndpointSelector from "devextreme/data/endpoint_selector";
- // ...
- export class AppComponent {
- endpointSelector: EndpointSelector;
- constructor() {
- this.endpointSelector = new EndpointSelector({
- db1: {
- local: "http://localhost:55555/service1.svc/",
- production: "http://services.example.com/service1.svc/"
- },
- db2: {
- local: "http://localhost:55555/service2.svc/",
- production: "http://services.example.com/service2.svc/"
- },
- // ...
- });
- }
- }
Feel free to share topic-related thoughts here.
If you have technical questions, please create a support ticket in the DevExpress Support Center.
Thank you for the feedback!
If you have technical questions, please create a support ticket in the DevExpress Support Center.