DevExtreme jQuery - EdmLiteral Methods

This section describes methods that control an EdmLiteral instance.

ctor(value)

Creates an EdmLiteral instance with a new value.

Parameters:
value:

String

A value in a format the OData's Abstract Type System defines.

jQuery
JavaScript
var edmLiteral = new DevExpress.data.EdmLiteral("100000L");
Angular
TypeScript
import { EdmLiteral } from "devextreme/data/odata/utils";
// ...
export class AppComponent {
    constructor() {
        let edmLiteral = new EdmLiteral("100000L");
    }
}

valueOf()

Gets the EdmLiteral's value converted to a string.

Return Value:

String

The value.

jQuery
JavaScript
var edmLiteral = new DevExpress.data.EdmLiteral("100000L");
console.log(edmLiteral.valueOf()); // logs 100000L
Angular
TypeScript
import { EdmLiteral } from "devextreme/data/odata/utils";
// ...
export class AppComponent {
    constructor() {
        let edmLiteral = new EdmLiteral("100000L");
        console.log(edmLiteral.valueOf()); // logs 100000L
    }
}