DevExtreme jQuery/JS - DevExtreme Modules Structure
DevExtreme modules have the following structure.
frame
Exposes methods for working with animation.
Exports:
requestAnimationFrame - The requestAnimationFrame method
Coderequire("animation/frame").requestAnimationFramecancelAnimationFrame - The cancelAnimationFrame method
Coderequire("animation/frame").cancelAnimationFrame
fx
Exposes an object that serves as a namespace for the methods that are used to animate UI elements.
Exports:
default - The fx object
Coderequire("animation/fx")
presets
Exposes a repository of animations.
Exports:
default - The animationPresets repository
Coderequire("animation/presets")
transition_executor
Exposes an object that serves as a namespace for the methods that are used to perform several specified animations at a time.
Exports:
default - The TransitionExecutor object
Coderequire("animation/transition_executor")
config
Exposes the global configuration object.
Exports:
default - The config() and config(config) methods
Coderequire("core/config")
devices
Exposes the object that defines the device on which the application is running.
Exports:
default - The device object
Coderequire("core/devices")
guid
Exposes an object used to generate and hold the GUID.
Exports:
default - The Guid object
Coderequire("core/guid")
array_store
Exposes the ArrayStore data access interface.
Exports:
default - The ArrayStore data access interface
Coderequire("data/array_store")
custom_store
Exposes the CustomStore data access interface.
Exports:
default - The CustomStore data access interface
Coderequire("data/custom_store")
data_source
Exposes the DataSource object.
Exports:
default - The DataSource object
Coderequire("data/data_source")
endpoint_selector
Exposes an object used to get URLs that vary in a locally running application and the application running on production..
Exports:
default - The EndpointSelector object
Coderequire("data/endpoint_selector")
errors
Exposes errors and warnings that may occur when using the DevExtreme Data Library.
Exports:
errorHandler - The function called when the Store causes an error. Assign a function to perform a custom action.
Coderequire("data/errors").errorHandler = function(){ // Implement logic here }
local_store
Exposes the LocalStore data access interface.
Exports:
default - The LocalStore data access interface
Coderequire("data/local_store")
context
Exposes the ODataContext data access interface.
Exports:
default - The ODataContext data access interface
Coderequire("data/odata/context")
store
Exposes the ODataStore data access interface.
Exports:
default - The ODataStore data access interface
Coderequire("data/odata/store")
utils
Exposes OData utility objects.
Exports:
EdmLiteral - The EdmLiteral object
Coderequire("data/odata/utils").EdmLiteralkeyConverters - The odata.keyConverters object
Coderequire("data/odata/utils").keyConverters
query
Exposes a data query interface object.
Exports:
default - The Query interface object.
Coderequire("data/query")
utils
Exposes utility objects provided by the DevExtreme data layer.
Exports:
base64_encode - The base64_encode method.
Coderequire("data/utils").base64_encode
drag
Exposes the dxdrag dxdragstart, dxdragend, dxdrop, dxdragenter, dxdragleave events.
require("events/drag")pointer
Exposes the dxpointercancel, dxpointerdown, dxpointerenter, dxpointerleave, dxpointermove, dxpointerout, dxpointerover, dxpointerup events.
require("events/pointer")transform
Exposes the dxtransform, dxtransformend, dxtransformstart, dxzoom, dxzoomend, dxzoomstart, dxpinch, dxpinchend, dxpinchstart, dxtranslate, dxtranslateend, dxtranslatestart events.
require("events/transform")command_container
Exposes a markup component used to indicate a widget in a layout markup as a command container.
Exports:
default - The dxCommandContainer markup component
Coderequire("framework/html/command_container")
html_application
Exposes an object used to manage views, as well as control the application life cycle.
Exports:
default - The HtmlApplication object
Coderequire("framework/html/html_application")
view_engine_components
Exposes components that can be used when defining the markup of an application page.
Exports:
dxView - The dxView markup options
Coderequire("framework/html/view_engine_components").dxViewdxLayout - The dxLayout markup options
Coderequire("framework/html/view_engine_components").dxLayoutdxViewPlaceholder - The dxViewPlaceholder markup options
Coderequire("framework/html/view_engine_components").dxViewPlaceholderdxContentPlaceholder - The dxContentPlaceholder markup options
Coderequire("framework/html/view_engine_components").dxContentPlaceholderdxTransition - The dxTransition markup options
Coderequire("framework/html/view_engine_components").dxTransitiondxContent - The dxContent markup options
Coderequire("framework/html/view_engine_components").dxContent
router
Exposes an object responsible for routing.
Exports:
default - The router object
Coderequire("framework/router")
state_manager
Exposes an object used to store the current application state.
Exports:
default - The stateManager object
Coderequire("framework/state_manager")
view_cache
Exposes an object used to store information on the views displayed in an application.
Exports:
default - The viewCache object
Coderequire("framework/view_cache")
localization
A folder containing modules that expose localization features.
Besides the listed modules, this folder contains the "messages" folder that provides access to json files containing localized messages. You can use them in the following way.
var deMessages = require('devextreme/localization/messages/de.json');currency
The module required for custom currency formatting rather than USD.
require("/localization/globalize/currency")message
The module required for using a custom message dictionary.
require("/localization/globalize/message")number
The module required for custom number formatting.
require("/localization/globalize/number")hide_top_overlay
Exposes the hideTopOverlay method.
Exports:
default - The hideTopOverlay method
Coderequire("mobile/hide_top_overlay")
init_mobile_viewport
Exposes the initMobileViewport method.
Exports:
default - The initMobileViewport method
Coderequire("mobile/init_mobile_viewport")
process_hardware_back_button
Exposes the processHardwareBackButton method.
Exports:
default - The processHardwareBackButton method
Coderequire("mobile/process_hardware_back_button")
action_sheet
Exposes the ActionSheet widget.
Exports:
default - The ActionSheet widget
Coderequire("ui/action_sheet")
autocomplete
Exposes the Autocomplete widget.
Exports:
default - The Autocomplete widget
Coderequire("ui/autocomplete")
button_group
Exposes the ButtonGroup widget.
Exports:
default - The ButtonGroup widget
Coderequire("ui/button_group")
context_menu
Exposes the ContextMenu widget.
Exports:
default - The ContextMenu widget
Coderequire("ui/context_menu")
defer_rendering
Exposes the DeferRendering widget.
Exports:
default - The DeferRendering widget
Coderequire("ui/defer_rendering")
drop_down_box
Exposes the DropDownBox widget.
Exports:
default - The DropDownBox widget
Coderequire("ui/drop_down_box")
file_uploader
Exposes the FileUploader widget.
Exports:
default - The FileUploader widget
Coderequire("ui/file_uploader")
filter_builder
Exposes the FilterBuilder widget.
Exports:
default - The FilterBuilder widget
Coderequire("ui/filter_builder")
html_editor
Exposes the HtmlEditor widget.
Exports:
default - The HtmlEditor widget
Coderequire("ui/html_editor")
load_indicator
Exposes the LoadIndicator widget.
Exports:
default - The LoadIndicator widget
Coderequire("ui/load_indicator")
notify
Exposes methods that create a toast message.
Exports:
default - The notify(message, type, displayTime) and notify(options) methods
Coderequire("ui/notify")
overlay
Exposes methods that work with overlay widgets.
Exports:
bazeZIndex - The baseZIndex(zIndex) method
Coderequire("ui/overlay").bazeZIndex
data_source
Exposes an object that provides acess to data for the PivotGrid data.
Exports:
default - The PivotGridDataSource object
Coderequire("ui/pivot_grid/data_source")
xmla_store
Exposes the XmlaStore data access interface.
Exports:
default - The XmlaStore data access interface
Coderequire("ui/pivot_grid/xmla_store")
pivot_grid_field_chooser
Exposes the PivotGridFieldChooser widget.
Exports:
default - The PivotGridFieldChooser widget
Coderequire("ui/pivot_grid_field_chooser")
progress_bar
Exposes the ProgressBar widget.
Exports:
default - The ProgressBar widget
Coderequire("ui/progress_bar")
radio_group
Exposes the RadioGroup widget.
Exports:
default - The RadioGroup widget
Coderequire("ui/radio_group")
range_slider
Exposes the RangeSlider widget.
Exports:
default - The RangeSlider widget
Coderequire("ui/range_slider")
recurrence_editor
Exposes the RecurrenceEditor widget.
Exports:
- default - The RecurrenceEditor widget require("ui/recurrence_editor")
responsive_box
Exposes the ResponsiveBox widget.
Exports:
default - The ResponsiveBox widget
Coderequire("ui/responsive_box")
scroll_view
Exposes the ScrollView widget.
Exports:
default - The ScrollView widget
Coderequire("ui/scroll_view")
set_template_engine
Exposes methods that specify a template engine.
Exports:
default - The setTemplateEngine(name) and setTemplateEngine(options) methods
Coderequire("ui/set_template_engine")
slide_out_view
Exposes the SlideOutView widget.
Exports:
default - The SlideOutView widget
Coderequire("ui/slide_out_view")
themes
Exposes an object that serves as a namespace for the methods that work with DevExtreme CSS Themes.
Exports:
current - The current() and current(themeName) methods
Coderequire("ui/themes").current
validation_engine
Exposes an object that serves as a namespace for the methods required to perform validation.
Exports:
default - The validationEngine object
Coderequire("ui/validation_engine")
validation_group
Exposes the ValidationGroup widget.
Exports:
default - The ValidationGroup widget
Coderequire("ui/validation_group")
validation_summary
Exposes the ValidationSummary widget.
Exports:
default - The ValidationSummary widget
Coderequire("ui/validation_summary")
circular_gauge
Exposes the CircularGauge widget.
Exports:
default - The CircularGauge widget
Coderequire("viz/circular_gauge")
export
Exposes export-related methods.
Exports:
exportFromMarkup - The exportFromMarkup(markup, options) method
Coderequire("viz/export").exportFromMarkupgetMarkup - The getMarkup(widgetInstances) method
Coderequire("viz/export").getMarkup
linear_gauge
Exposes the LinearGauge widget.
Exports:
default - The LinearGauge widget
Coderequire("viz/linear_gauge")
palette
Exposes methods that control palettes.
Exports:
currentPalette - The currentPalette(paletteName) method
Coderequire("viz/palette").currentPalettegetPalette - The getPalette(paletteName) method
Coderequire("viz/palette").getPaletteregisterPalette - The registerPalette(paletteName, palette) method
Coderequire("viz/palette").registerPalette
polar_chart
Exposes the PolarChart widget.
Exports:
default - The PolarChart widget
Coderequire("viz/polar_chart")
range_selector
Exposes the RangeSelector widget.
Exports:
default - The RangeSelector widget
Coderequire("viz/range_selector")
themes
Exposes methods that control themes.
Exports:
currentTheme - The currentTheme(theme) and currentTheme(platform, colorScheme) methods
Coderequire("viz/themes").currentThemerefreshTheme - The refreshTheme() method
Coderequire("viz/themes").refreshThemeregisterTheme - The registerTheme(customTheme, baseTheme) method
Coderequire("viz/themes").registerTheme
utils
Exposes utility methods.
Exports:
refreshPaths - The refreshPaths() method
Coderequire("viz/utils").refreshPaths
projection
Exposes methods of the DevExpress.viz.map object.
Exports:
projection - The projection method
Coderequire("viz/vector_map/projection").projection
utils
Exposes the common utility objects.
Exports:
compileGetter - The compileGetter method
Coderequire("utils").compileGettercompileSetter - The compileSetter method
Coderequire("utils").compileSetter