DevExtreme React - EdmLiteral Methods
ctor(value)
Parameters:
value:
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"); } }
Vue
App.vue
<script> import { EdmLiteral } from 'devextreme/data/odata/utils'; export default { mounted() { this.edmLiteral = new EdmLiteral('100000L'); }, // ... } </script>
React
App.js
// ... import { EdmLiteral } from 'devextreme/data/odata/utils'; class App extends React.Component { constructor(props) { super(props); this.edmLiteral = new EdmLiteral('100000L'); } } export default App;
valueOf()
Return 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 } }
Vue
App.vue
<script> import { EdmLiteral } from 'devextreme/data/odata/utils'; export default { mounted() { this.edmLiteral = new EdmLiteral('100000L'); console.log(this.edmLiteral.valueOf()); // logs 100000L }, // ... } </script>
React
App.js
// ... import { EdmLiteral } from 'devextreme/data/odata/utils'; class App extends React.Component { constructor(props) { super(props); this.edmLiteral = new EdmLiteral('100000L'); console.log(this.edmLiteral.valueOf()); // logs 100000L } } export default App;
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.