DevExtreme Angular - EdmLiteral Methods
This section describes methods that control an EdmLiteral instance.
ctor(value)
Creates an EdmLiteral instance with a new value.
Parameters:
value:
A value in a format the OData's Abstract Type System defines.
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:
The value.
TypeScript
- import { EdmLiteral } from "devextreme/data/odata/utils";
- // ...
- export class AppComponent {
- constructor() {
- let edmLiteral = new EdmLiteral("100000L");
- console.log(edmLiteral.valueOf()); // logs 100000L
- }
- }