jQuery/JS Common Types

gauges

AIIntegration

A class that activates AI services in DevExpress UI components.

import { AIIntegration } from "devextreme/common/ai-integration"

This object's constructor accepts two parameters:

Pass the created AIIntegration object to components where you want to activate AI capabilities.

jQuery

You need to link AIIntegration source.

index.js
index.html
const aiIntegration = new DevExpress.aiIntegration.AIIntegration(provider);

$("#htmlEditor").dxHtmlEditor({
    // ...
    aiIntegration,
});
<head>
    <!-- ... -->
    <script type="text/javascript" src="../artifacts/js/dx.ai-integration.js" charset="utf-8"></script>
    <!-- or if using CDN -->
    <script src="https://unpkg.com/devextreme-dist@26.1-next/dist/js/dx.ai-integration.js"></script>
</head>
Angular
app.component.ts
app.component.html
import { AIIntegration } from 'devextreme-angular/common/ai-integration';
// ...
export class AppComponent {
    aiIntegration = new AIIntegration(provider);
}
<dx-html-editor [aiIntegration]="aiIntegration"></dx-html-editor>
Vue
App.vue
<template>
    <DxHtmlEditor :ai-integration="aiIntegration" />
</template>

<script setup lang="ts">
import { AIIntegration } from 'devextreme-vue/common/ai-integration';
const aiIntegration = new AIIntegration(provider);
</script>
React
App.tsx
import { AIIntegration } from 'devextreme-react/common/ai-integration';
const aiIntegration = new AIIntegration(provider);

const App = () => {
    return (
        <HtmlEditor aiIntegration={aiIntegration} />
    );
}

AIIntegrationOptions

Specifies optional AI service configuration.

import { AIIntegration_Options } from "devextreme/common/ai-integration"
Type:

Object

AIProvider

An object responsible for sending requests to an AI service.

import { AIProvider } from "devextreme/common/ai-integration"
Type:

Object

AIResponse

An object that contains an AI response.

import { AIResponse } from "devextreme/common/ai-integration"
Type:

Object

ApplyValueMode

Specifies the way an end-user applies the selected value.

Accepted Values: 'instantly' | 'useButtons'

ButtonStyle

Specifies how the button is styled.

Accepted Values: 'text' | 'outlined' | 'contained'

ButtonType

Specifies the button type.

Accepted Values: 'danger' | 'default' | 'normal' | 'success'

ComparisonOperator

Specifies the operator to be used for comparing the validated value with the target.

Accepted Values: '!=' | '!==' | '<' | '<=' | '==' | '===' | '>' | '>='

DataStructure

Specifies the data structure.

Accepted Values: 'plain' | 'tree'

DataType

Specifies a data type for a column/field value.

Accepted Values: 'string' | 'number' | 'date' | 'boolean' | 'object' | 'datetime'

DefaultOptionsRule

Specifies the device-dependent default configuration properties for a component.

import { DefaultOptionsRule } from "devextreme/common"
Type:

Object

Direction

Specifies the animation direction for the "slideIn" and "slideOut" animation types.

Accepted Values: 'bottom' | 'left' | 'right' | 'top'

DisplayMode

Accepted Values: 'adaptive' | 'compact' | 'full'

DragDirection

Specifies the directions in which an item/row can be dragged.

Accepted Values: 'both' | 'horizontal' | 'vertical'

DragHighlight

Specifies how to highlight the item/row's drop position.

Accepted Values: 'push' | 'indicate'

EditorStyle

Specifies how the UI component's text field is styled.

Accepted Values: 'outlined' | 'underlined' | 'filled'

ExportFormat

Specifies a set of export formats.

Accepted Values: 'GIF' | 'JPEG' | 'PDF' | 'PNG' | 'SVG'

FieldAddons

import { FieldAddons } from "devextreme/ui/drop_down_editor/ui.drop_down_editor"
Type:

Object

FieldChooserLayout

Specifies the field chooser layout.

Accepted Values: 0 | 1 | 2

FirstDayOfWeek

Specifies the first day of a week.

Accepted Values: 0 | 1 | 2 | 3 | 4 | 5 | 6

FloatingActionButtonDirection

Specifies the direction in which to open the speed dial menu.

Accepted Values: 'auto' | 'up' | 'down'

Format

Specifies a predefined format.

Accepted Values: 'billions' | 'currency' | 'day' | 'decimal' | 'exponential' | 'fixedPoint' | 'largeNumber' | 'longDate' | 'longTime' | 'millions' | 'millisecond' | 'month' | 'monthAndDay' | 'monthAndYear' | 'percent' | 'quarter' | 'quarterAndYear' | 'shortDate' | 'shortTime' | 'thousands' | 'trillions' | 'year' | 'dayOfWeek' | 'hour' | 'longDateLongTime' | 'minute' | 'second' | 'shortDateShortTime'

GenerateGridColumnCommandResponse

import { GenerateGridColumnCommandResponse } from "devextreme/common/ai-integration"
Type:

String

|

Object

HorizontalEdge

Specifies the position of a component's element relative to the component in the horizontal direction.

Accepted Values: 'left' | 'right'

LabelMode

Specifies the label's display mode.

Accepted Values: 'static' | 'floating' | 'hidden' | 'outside'

LoadingAnimationType

Chooses between predefined load indicator animations.

Accepted Values: 'circle' | 'sparkle'

MaskMode

Specifies when the UI component shows the mask.

Accepted Values: 'always' | 'onFocus'

PageLoadMode

Specifies whether the next page is loaded when a user scrolls the UI component to the bottom or when the "next" button is clicked.

Accepted Values: 'nextButton' | 'scrollBottom'

PageOrientation

Specifies the page orientation.

Accepted Values: 'portrait' | 'landscape'

PositionAlignment

Positions the UI component.

Accepted Values: 'bottom' | 'center' | 'left' | 'left bottom' | 'left top' | 'right' | 'right bottom' | 'right top' | 'top'

Prompt

A prompt for the AI model.

import { Prompt } from "devextreme/common/ai-integration"
Type:

Object

Most AI services support a prompt that contains two fields: system message and user message. The system message directs the AI model, such as "You are a professional assistant." The user message is the user's request, such as "Create a to-do list for today."

RequestParams

An object with request parameters for AI service.

import { RequestParams } from "devextreme/common/ai-integration"
Type:

Object

RequestParamsData

An object that contains additional data to be sent to an AI model.

import { RequestParamsData } from "devextreme/common/ai-integration"
Type:

Object

Use this object to specify additional data required by AI endpoints. For example, you can add metadata and query parameters.

Response

An object returned by the sendRequest function.

import { Response } from "devextreme/common/ai-integration"
Type:

Object

ScrollbarMode

Specifies when the UI component shows the scrollbar.

Accepted Values: 'always' | 'never' | 'onHover' | 'onScroll'

ScrollDirection

Specifies the available scrolling directions.

Accepted Values: 'both' | 'horizontal' | 'vertical'

ScrollMode

Specifies the scrolling mode.

Accepted Values: 'standard' | 'virtual'

SearchMode

Specifies a comparison operation used to search UI component items.

Accepted Values: 'contains' | 'startswith' | 'equals'

SelectAllMode

Specifies the mode in which all items are selected.

Accepted Values: 'allPages' | 'page'

SimplifiedSearchMode

Specifies a comparison operation used to search UI component items.

Accepted Values: 'contains' | 'startswith'

SingleMultipleAllOrNone

Specifies whether the UI component enables an end-user to select only a single item, multiple items, all, or none.

Accepted Values: 'single' | 'multiple' | 'all' | 'none'

SingleMultipleOrNone

Specifies whether the UI component enables an end-user to select only a single item, multiple items, or none.

Accepted Values: 'single' | 'multiple' | 'none'

SingleOrMultiple

Specifies whether the UI component enables an end-user to select only a single item or multiple items.

Accepted Values: 'single' | 'multiple'

SingleOrNone

Specifies whether the UI component enables an end-user to select only a single item or none.

Accepted Values: 'single' | 'none'

SliderValueChangeMode

Specifies when to change the component's value.

Accepted Values: 'onHandleMove' | 'onHandleRelease'

StoreType

Specifies the storage type the DataSource uses.

Accepted Values: 'array' | 'local' | 'odata'

SubmenuShowMode

Specifies modes of submenu showing and hiding.

Accepted Values: 'onClick' | 'onHover'

TabsIconPosition

Specifies icon position inside the tab.

Accepted Values: 'top' | 'end' | 'bottom' | 'start'

TabsStyle

Specifies tab styling mode.

Accepted Values: 'primary' | 'secondary'

TextBoxPredefinedButton

Specifies the predefined button for a textbox.

Accepted Values: 'clear'

TextEditorButtonLocation

Specifies whether to place the button before or after the input text field.

Accepted Values: 'after' | 'before'

ToolbarItemComponent

Specifies the UI component that presents a toolbar item.

Accepted Values: 'dxAutocomplete' | 'dxButton' | 'dxButtonGroup' | 'dxCheckBox' | 'dxDateBox' | 'dxDropDownButton' | 'dxMenu' | 'dxSelectBox' | 'dxSwitch' | 'dxTabs' | 'dxTextBox'

TooltipShowMode

Specifies when the UI component shows a tooltip.

Accepted Values: 'always' | 'onHover'

ValidationMessageMode

Specifies how the message about the validation rules that are not satisfied by this editor's value is displayed.

Accepted Values: 'always' | 'auto'

ValidationRule

Specifies a validation rule.

import { ValidationRule } from "devextreme/common"

VerticalEdge

Specifies the position of a component's element relative to the component in the vertical direction.

Accepted Values: 'bottom' | 'top'