dxAccordion
The Accordion widget contains several panels displayed one under another. These panels can be collapsed or expanded by an end user, which makes this widget very useful for presenting information in a limited amount of space.
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-accordion
- [dataSource]="accordionData"
- [collapsible]="true"
- [multiple]="true">
- </dx-accordion>
- import { DxAccordionModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- accordionData = [
- { title: "Panel 1 Title", text: "Panel 1 Text Content" },
- { title: "Panel 2 Title", text: "Panel 2 Text Content" }
- ];
- }
- @NgModule({
- imports: [
- // ...
- DxAccordionModule
- ],
- // ...
- })
See Also
dxActionSheet
The ActionSheet widget is a sheet containing a set of buttons located one under the other. These buttons usually represent several choices relating to a single task.
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-action-sheet
- [dataSource]="actionSheetData"
- [visible]="true"
- (onItemClick)="showAlert($event)">
- </dx-action-sheet>
- import { DxActionSheetModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- actionSheetData = [
- { text: "Command 1" },
- { text: "Command 2" },
- { text: "Command 3" },
- { text: "Command 4" }
- ];
- showAlert (e) {
- alert("The " + e.itemData.text + " button was clicked");
- }
- }
- @NgModule({
- imports: [
- // ...
- DxActionSheetModule
- ],
- // ...
- })
See Also
dxAutocomplete
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-autocomplete
- [dataSource]="autocompleteData"
- placeholder="Type item name...">
- </dx-autocomplete>
- import { DxAutocompleteModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- autocompleteData = [ "Item 1", "Item 2", "Item 3" ];
- }
- @NgModule({
- imports: [
- // ...
- DxAutocompleteModule
- ],
- // ...
- })
See Also
dxBox
The Box widget allows you to arrange various elements within it. Separate and adaptive, the Box widget acts as a building block for the layout.
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-box
- direction="row"
- height="70%"
- width="90%">
- <dxi-item
- id="item1"
- [ratio]="1"
- [baseSize]="10">
- <p>Item 1</p>
- </dxi-item>
- <dxi-item
- id="item2"
- [ratio]="3"
- [baseSize]="40">
- <p>Item 2</p>
- </dxi-item>
- <dxi-item
- id="item3"
- [ratio]="2"
- [baseSize]="20">
- <p>Item 3</p>
- </dxi-item>
- </dx-box>
- import { DxBoxModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- // ...
- }
- @NgModule({
- imports: [
- // ...
- DxBoxModule
- ],
- // ...
- })
See Also
dxButton
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-button
- text="Click me"
- (onClick)="buttonClicked()">
- </dx-button>
- import { DxButtonModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- buttonClicked() {
- alert("The Button was clicked");
- }
- }
- @NgModule({
- imports: [
- // ...
- DxButtonModule
- ],
- // ...
- })
See Also
dxButtonGroup
The ButtonGroup is a widget that contains a set of toggle buttons and can be used as a mode switcher.
dxCalendar
The Calendar is a widget that displays a calendar and allows an end user to select the required date within a specified date range.
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-calendar
- [min]="minDate"
- [max]="maxDate"
- [firstDayOfWeek]="1"
- [(value)]="currentDate">
- </dx-calendar>
- import { DxCalendarModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- minDate = new Date(2000, 0, 1);
- maxDate = new Date(2029, 11, 31);
- currentDate = new Date();
- }
- @NgModule({
- imports: [
- // ...
- DxCalendarModule
- ],
- // ...
- })
See Also
dxCheckBox
The CheckBox is a small box, which when selected by the end user, shows that a particular feature has been enabled or a specific option has been chosen.
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-check-box
- text="Toggle me"
- [value]="undefined"
- (onValueChanged)="checkBoxToggled($event)">
- </dx-check-box>
- import { DxCheckBoxModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- checkBoxToggled(e) {
- alert(e.value);
- };
- }
- @NgModule({
- imports: [
- // ...
- DxCheckBoxModule
- ],
- // ...
- })
See Also
dxColorBox
The ColorBox is a widget that allows an end user to enter a color or pick it out from the drop-down editor.
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-color-box
- value="rgba(255, 144, 0, 0.3)"
- [editAlphaChannel]="true">
- </dx-color-box>
- import { DxColorBoxModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- // ...
- }
- @NgModule({
- imports: [
- // ...
- DxColorBoxModule
- ],
- // ...
- })
See Also
dxContextMenu
The ContextMenu widget displays a single- or multi-level context menu. An end user invokes this menu by a right click or a long press.
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <div id="targetElement"></div>
- <dx-context-menu
- [items]="contextMenuItems"
- target="#targetElement">
- </dx-context-menu>
- import { DxContextMenuModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- contextMenuItems = [
- { text: "Hide" },
- { text: "Delete" },
- {
- text: "Clipboard",
- items: [
- { text: "Copy" },
- { text: "Clear" },
- { text: "Paste" }
- ]
- }
- ];
- }
- @NgModule({
- imports: [
- // ...
- DxContextMenuModule
- ],
- // ...
- })
See Also
dxDataGrid
The DataGrid is a widget that represents data from a local or remote source in the form of a grid. This widget offers such basic features as sorting, grouping, filtering, as well as more advanced capabilities, like state storing, export to Excel, master-detail interface, and many others.
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-data-grid
- [dataSource]="customers"
- keyExpr="ID">
- <dxi-column dataField="CompanyName"></dxi-column>
- <dxi-column dataField="City"></dxi-column>
- <dxi-column dataField="State"></dxi-column>
- </dx-data-grid>
- import { DxDataGridModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- customers = [{
- ID: 1,
- CompanyName: "Super Mart of the West",
- City: "Bentonville",
- State: "Arkansas"
- }, {
- ID: 2,
- CompanyName: "Electronics Depot",
- City: "Atlanta",
- State: "Georgia"
- }];
- }
- @NgModule({
- imports: [
- // ...
- DxDataGridModule
- ],
- // ...
- })
See Also
dxDateBox
The DateBox is a widget that displays date and time in a specified format, and enables a user to pick or type in the required date/time value.
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-date-box
- [min]="minDate"
- [max]="maxDate"
- [(value)]="currentDate">
- </dx-date-box>
- import { DxDateBoxModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- minDate = new Date(2000, 0, 1);
- maxDate = new Date(2029, 11, 31);
- currentDate = new Date();
- }
- @NgModule({
- imports: [
- // ...
- DxDateBoxModule
- ],
- // ...
- })
See Also
dxDeferRendering
The DeferRendering is a widget that waits for its content to be ready before rendering it. While the content is getting ready, the DeferRendering displays a loading indicator.
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-defer-rendering
- [renderWhen]="modelReady"
- >
- <!-- Widget content -->
- </dx-defer-rendering>
- var modelIsReady = $.Deferred();
- // Here goes a function that resolves the "readyToRender" Deferred object at a specific moment
- // ...
- export class AppComponent
- modelReady = modelIsReady.promise();
- }
See Also
dxDrawer
The Drawer is a dismissible or permanently visible panel used for navigation in responsive web application layouts.
dxDropDownBox
The DropDownBox widget consists of a text field, which displays the current value, and a drop-down field, which can contain any UI element.
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-drop-down-box
- [(value)]="selectedFruit"
- [(opened)]="isDropDownBoxOpened"
- [dataSource]="fruits">
- <div *dxTemplate="let contentData of 'content'">
- <dx-list
- [dataSource]="fruits"
- selectionMode="single"
- (onSelectionChanged)="changeDropDownBoxValue($event)">
- </dx-list>
- </div>
- </dx-drop-down-box>
- import { DxDropDownBoxModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- fruits = ["Apples", "Oranges", "Lemons", "Pears", "Pineapples"];
- selectedFruit = fruits[0];
- isDropDownBoxOpened = false;
- changeDropDownBoxValue = function (args) {
- selectedFruit = args.addedItems[0];
- isDropDownBoxOpened = false;
- }
- }
- @NgModule({
- imports: [
- // ...
- DxDropDownBoxModule
- ],
- // ...
- })
dxFileUploader
The FileUploader widget enables an end user to upload files to the server. An end user can select files in the file explorer or drag and drop files to the FileUploader area on the page.
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-file-uploader accept="image/*"></dx-file-uploader>
- import { DxFileUploaderModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- // ...
- }
- @NgModule({
- imports: [
- // ...
- DxFileUploaderModule
- ],
- // ...
- })
See Also
dxFilterBuilder
The FilterBuilder widget allows a user to build complex filter expressions with an unlimited number of filter conditions, combined by logical operations using the UI.
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-filter-builder
- [value]='["Category", "contains", "Tel"]'>
- <dxi-field
- dataField="Category">
- </dxi-field>
- <dxi-field
- dataField="Shipped"
- caption="Shipment Date"
- dataType="date">
- </dxi-field>
- <dxi-field
- dataField="UnitPrice"
- dataType="number">
- </dxi-field>
- </dx-filter-builder>
- import { DxFilterBuilderModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- // ...
- }
- @NgModule({
- imports: [
- // ...
- DxFilterBuilderModule
- ],
- // ...
- })
See Also
dxForm
The Form widget represents fields of a data object as a collection of label-editor pairs. These pairs can be arranged in several groups, tabs and columns.
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-form
- [formData]="companyData">
- <dxi-item dataField="name"></dxi-item>
- <dxi-item
- itemType="group"
- caption="Location">
- <dxi-item dataField="city"></dxi-item>
- <dxi-item dataField="state"></dxi-item>
- <dxi-item dataField="zip"></dxi-item>
- </dxi-item>
- <dxi-item
- itemType="group"
- caption="Contacts">
- <dxi-item dataField="phone"></dxi-item>
- <dxi-item dataField="fax"></dxi-item>
- <dxi-item dataField="website"></dxi-item>
- </dxi-item>
- </dx-form>
- import { DxFormModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- companyData = {
- id: 1,
- name: "Super Mart of the West",
- city: "Bentonville",
- state: "Arkansas",
- zip: 72716,
- phone: "(800) 555-2797",
- fax: "(800) 555-2171",
- website: "http://www.nowebsite.com"
- };
- }
- @NgModule({
- imports: [
- // ...
- DxFormModule
- ],
- // ...
- })
See Also
dxGallery
The Gallery is a widget that displays a collection of images in a carousel. The widget is supplied with various navigation controls that allow a user to switch between images.
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-gallery
- [dataSource]="galleryData"
- [height]="300">
- </dx-gallery>
- import { DxGalleryModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- galleryData = [
- "http://path/to/image/1.png",
- "http://path/to/image/2.png",
- "http://path/to/image/3.png"
- ];
- }
- @NgModule({
- imports: [
- // ...
- DxGalleryModule
- ],
- // ...
- })
See Also
dxHtmlEditor CTP
HtmlEditor is a WYSIWYG text editor build on top of Quill, designed to support HTML and Markdown output formats.
HtmlEditor is at the Community Technology Preview (CTP) development stage. That means that the widget is available for testing, but its concept, design and behavior can be reconsidered and changed without notice.
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-html-editor
- valueType="html">
- <dxo-toolbar [items]="items"></dxo-toolbar>
- <p>
- <b>Lorem ipsum dolor sit amet</b>,
- <i>consectetur adipiscing elit</i>,
- sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
- </p>
- </dx-html-editor>
- import { DxHtmlEditorModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- items: any = [
- "bold", "italic", "separator", {
- formatName: "size",
- formatValues: ["11px", "12px", "16px"]
- }, "separator",
- "alignLeft", "alignCenter", "alignRight"
- ];
- }
- @NgModule({
- imports: [
- // ...
- DxHtmlEditorModule
- ],
- // ...
- })
See Also
dxList
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-list
- [dataSource]="listData"
- [searchEnabled]="true">
- </dx-list>
- import { DxListModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- listData = [ "Item 1", "Item 2", "Item 3" ];
- }
- @NgModule({
- imports: [
- // ...
- DxListModule
- ],
- // ...
- })
See Also
dxLoadIndicator
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-load-indicator [(visible)]="isLoadIndicatorVisible"></dx-load-indicator>
- import { DxLoadIndicatorModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- isLoadIndicatorVisible = true;
- }
- @NgModule({
- imports: [
- // ...
- DxLoadIndicatorModule
- ],
- // ...
- })
See Also
dxLoadPanel
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-load-panel
- [closeOnOutsideClick]="true"
- [(visible)]="isLoadPanelVisible">
- </dx-load-panel>
- import { DxLoadPanelModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- isLoadPanelVisible = true;
- }
- @NgModule({
- imports: [
- // ...
- DxLoadPanelModule
- ],
- // ...
- })
See Also
dxLookup
The Lookup is a widget that allows an end user to search for an item in a collection shown in a drop-down menu.
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-lookup
- [dataSource]="lookupDataSource"
- placeholder="Select an item">
- </dx-lookup>
- import { DxLookupModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- lookupDataSource = [ "Item 1", "Item 2", "Item 3" ];
- }
- @NgModule({
- imports: [
- // ...
- DxLookupModule
- ],
- // ...
- })
See Also
dxMap
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-map
- provider="bing"
- type="roadmap"
- [zoom]="10"
- center="40.749825, -73.987963">
- </dx-map>
- import { DxMapModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- // ...
- }
- @NgModule({
- imports: [
- // ...
- DxMapModule
- ],
- // ...
- })
See Also
dxMenu
The Menu widget is a panel with clickable items. A click on an item opens a drop-down menu, which can contain several submenus.
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-menu [items]="menuItems"></dx-menu>
- import { DxMenuModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- menuItems = [
- { text: "Hide" },
- { text: "Delete" },
- {
- text: "Clipboard",
- items: [
- { text: "Copy" },
- { text: "Clear" },
- { text: "Paste" }
- ]
- }
- ];
- }
- @NgModule({
- imports: [
- // ...
- DxMenuModule
- ],
- // ...
- })
See Also
dxMultiView
The MultiView is a widget that contains several views. An end user navigates through the views by swiping them in the horizontal direction.
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-multi-view [items]="multiViewItems"></dx-multi-view>
- import { DxMultiViewModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- multiViewItems = [
- { text: "View 1" },
- { text: "View 2" },
- { text: "View 3" }
- ];
- }
- @NgModule({
- imports: [
- // ...
- DxMultiViewModule
- ],
- // ...
- })
See Also
dxNavBar
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-nav-bar>
- <dxi-item text="Home" icon="home"></dxi-item>
- <dxi-item text="About" icon="info"></dxi-item>
- <dxi-item text="Favorites" icon="favorites" badge="new"></dxi-item>
- </dx-nav-bar>
- import { DxNavBarModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- // ...
- }
- @NgModule({
- imports: [
- // ...
- DxNavBarModule
- ],
- // ...
- })
See Also
dxNumberBox
The NumberBox is a widget that displays a numeric value and allows a user to modify it by typing in a value, and incrementing or decrementing it using the keyboard or mouse.
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-number-box
- [value]="20"
- [min]="16"
- [max]="100"
- placeholder="Enter your age">
- </dx-number-box>
- import { DxNumberBoxModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- // ...
- }
- @NgModule({
- imports: [
- // ...
- DxNumberBoxModule
- ],
- // ...
- })
See Also
dxPanorama
The Panorama widget is a full-screen widget that allows you to arrange items on a long horizontal canvas split into several views. Each view contains several items, and an end user navigates the views with the swipe gesture. The Panorama is often used as a navigation map on the first page of an application.
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-panorama
- [items]="panoramaItems">
- <dxo-background-image
- url="/here/goes/your/image.png"
- [height]="600"
- [width]="800">
- </dxo-background-image>
- </dx-panorama>
- import { DxPanoramaModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- panoramaItems = [{
- title: "Item 1 Title",
- text: "Item 1 Text Content"
- }, {
- title: "Item 2 Title",
- text: "Item 2 Text Content"
- }];
- }
- @NgModule({
- imports: [
- // ...
- DxPanoramaModule
- ],
- // ...
- })
See Also
dxPivot
The Pivot provides a quick way to manage multiple views. It includes a collection of views and a navigation header. An end user switches the views by swiping them or by clicking their titles on the navigation header.
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-pivot
- [items]="pivotItems"
- [height]="300">
- </dx-pivot>
- import { DxPivotModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- pivotItems = [{
- title: "Item 1 Title",
- text: "Item 1 Text Content"
- }, {
- title: "Item 2 Title",
- text: "Item 2 Text Content"
- }, {
- title: "Item 3 Title",
- text: "Item 3 Text Content"
- }];
- }
- @NgModule({
- imports: [
- // ...
- DxPivotModule
- ],
- // ...
- })
See Also
dxPivotGrid
The PivotGrid is a widget that allows you to display and analyze multi-dimensional data from a local storage or an OLAP cube.
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-pivot-grid
- [dataSource]="pivotGridDataSource">
- </dx-pivot-grid>
- import { DxPivotGridModule } from "devextreme-angular";
- import PivotGridDataSource from "devextreme/ui/pivot_grid/data_source";
- // ...
- export class AppComponent {
- pivotGridDataSource: PivotGridDataSource;
- constructor() {
- this.pivotGridDataSource = new PivotGridDataSource({
- store: {
- type: "odata",
- url: "http://url/to/the/service",
- key: "OrderID",
- keyType: "Int32"
- },
- fields: [
- { area: "column", dataField: "OrderDate", dataType: "date" },
- { area: "row", dataField: "ShipCountry" },
- { area: "row", dataField: "ShipCity" },
- { area: "row", dataField: "ShipName" },
- { area: "data", summaryType: "count" }
- ]
- });
- }
- }
- @NgModule({
- imports: [
- // ...
- DxPivotGridModule
- ],
- // ...
- })
To provide data for the PivotGrid widget, specify a data source. PivotGrid accepts the PivotGridDataSource data source only. You can pass its configuration to the dataSource field without creating the separate PivotGridDataSource object as shown above.
dxPivotGridFieldChooser
A complementary widget for the PivotGrid that allows you to manage data displayed in the PivotGrid. The field chooser is already integrated in the PivotGrid and can be invoked using the context menu. If you need to continuously display the field chooser near the PivotGrid widget, use the PivotGridFieldChooser widget.
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-pivot-grid-field-chooser [dataSource]="pivotGridDataSource"></dx-pivot-grid-field-chooser>
- <dx-pivot-grid [dataSource]="pivotGridDataSource"></dx-pivot-grid>
- import { DxPivotGridFieldChooserModule } from "devextreme-angular";
- import PivotGridDataSource from "devextreme/ui/pivot_grid/data_source";
- // ...
- export class AppComponent {
- pivotGridDataSource = new PivotGridDataSource({
- // ...
- });
- }
- @NgModule({
- imports: [
- // ...
- DxPivotGridFieldChooserModule
- ],
- // ...
- })
Both the PivotGridFieldChooser and the PivotGrid must be bound to one and the same instance of the PivotGridDataSource. Create the PivotGridDataSource individually and then assign it to both widgets as shown in the code above.
dxPopover
The Popover is a widget that shows notifications within a box with an arrow pointing to a specified UI element.
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <div id="targetElement"></div>
- <dx-popover
- target="#targetElement"
- showEvent="dxhoverstart"
- hideEvent="dxhoverend">
- <div *dxTemplate="let data of 'content'">
- <p>Popover content</p>
- </div>
- </dx-popover>
- import { DxPopoverModule } from 'devextreme-angular'
- // ...
- export class AppComponent {
- // ...
- }
- @NgModule({
- imports: [
- // ...
- DxPopoverModule
- ],
- // ...
- })
See Also
dxPopup
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-popup
- title="Popup Title"
- [(visible)]="isPopupVisible">
- <div *dxTemplate="let data of 'content'">
- <p>Popup content</p>
- </div>
- </dx-popup>
- import { DxPopupModule } from "devextreme-angular"
- // ...
- export class AppComponent {
- isPopupVisible = true;
- }
- @NgModule({
- imports: [
- // ...
- DxPopupModule
- ],
- // ...
- })
See Also
dxProgressBar
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-progress-bar
- [min]="0"
- [max]="100"
- [value]="49">
- </dx-progress-bar>
- import { DxProgressBarModule } from "devextreme-angular"
- // ...
- export class AppComponent {
- // ...
- }
- @NgModule({
- imports: [
- // ...
- DxProgressBarModule
- ],
- // ...
- })
See Also
dxRadioGroup
The RadioGroup is a widget that contains a set of radio buttons and allows an end user to make a single selection from the set.
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-radio-group
- [dataSource]="radioGroupItems"
- displayExpr="text"
- valueExpr="color"
- value="green">
- </dx-radio-group>
- import { DxRadioGroupModule } from "devextreme-angular"
- // ...
- export class AppComponent {
- radioGroupItems = [
- { text: "Item 1", color: "grey" },
- { text: "Item 2", color: "green" },
- { text: "Item 3", color: "yellow" },
- { text: "Item 4", color: "red" }
- ];
- }
- @NgModule({
- imports: [
- // ...
- DxRadioGroupModule
- ],
- // ...
- })
See Also
dxRangeSlider
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-range-slider
- [min]="0" [max]="100"
- [start]="20 [end]="60">
- </dx-range-slider>
- import { DxRangeSliderModule } from "devextreme-angular"
- // ...
- export class AppComponent {
- // ...
- }
- @NgModule({
- imports: [
- // ...
- DxRangeSliderModule
- ],
- // ...
- })
See Also
dxResizable
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-resizable
- [width]="200"
- [height]="200"
- [minWidth]="30"
- [minHeight]="30"
- [maxWidth]="500"
- [maxHeight]="500">
- <div id="content"></div>
- </dx-resizable>
- #content {
- height: 100%;
- width: 100%
- }
- import { DxResizableModule } from "devextreme-angular"
- // ...
- export class AppComponent {
- // ...
- }
- @NgModule({
- imports: [
- // ...
- DxResizableModule
- ],
- // ...
- })
See Also
dxResponsiveBox
The ResponsiveBox widget allows you to create an application or a website with a layout adapted to different screen sizes.
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-responsive-box>
- <dxi-row [ratio]="1"></dxi-row>
- <dxi-row [ratio]="2"></dxi-row>
- <dxi-row [ratio]="0.7"></dxi-row>
- <dxi-col [ratio]="1"></dxi-col>
- <dxi-item class="header">
- <dxi-location [row]="0" [col]="0"></dxi-location>
- <p>Header</p>
- </dxi-item>
- <dxi-item class="content">
- <dxi-location [row]="1" [col]="0"></dxi-location>
- <p>Content</p>
- </dxi-item>
- <dxi-item class="footer">
- <dxi-location [row]="2" [col]="0"></dxi-location>
- <p>Footer</p>
- </dxi-item>
- </dx-responsive-box>
- import { DxResponsiveBoxModule } from "devextreme-angular"
- // ...
- export class AppComponent {
- // ...
- }
- @NgModule({
- imports: [
- // ...
- DxResponsiveBoxModule
- ],
- // ...
- })
See Also
dxScheduler
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-scheduler
- [dataSource]="schedulerData"
- [currentDate]="new Date(2015, 4, 10)"
- [startDayHour]="8"
- [endDayHour]="19">
- </dx-scheduler>
- import { DxSchedulerModule } from "devextreme-angular"
- // ...
- export class AppComponent {
- schedulerData = [{
- text: "Meeting customers",
- startDate: new Date(2015, 4, 10, 11, 0),
- endDate: new Date(2015, 4, 10, 13, 0)
- }, {
- text: "Summing up the results",
- startDate: new Date(2015, 4, 11, 12, 0),
- endDate: new Date(2015, 4, 11, 13, 0)
- },
- // ...
- ];
- }
- @NgModule({
- imports: [
- // ...
- DxSchedulerModule
- ],
- // ...
- })
See Also
dxScrollView
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-scroll-view
- [height]="500"
- [width]="500"
- direction="both">
- <div id="content"></div>
- </dx-scroll-view>
- import { DxScrollViewModule } from "devextreme-angular"
- // ...
- export class AppComponent {
- // ...
- }
- @NgModule({
- imports: [
- // ...
- DxScrollViewModule
- ],
- // ...
- })
See Also
dxSelectBox
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-select-box
- [dataSource]="selectBoxDataSource"
- [searchEnabled]="true">
- </dx-select-box>
- import { DxSelectBoxModule } from "devextreme-angular"
- // ...
- export class AppComponent {
- selectBoxDataSource = [ "Item 1", "Item 2", "Item 3" ];
- }
- @NgModule({
- imports: [
- // ...
- DxSelectBoxModule
- ],
- // ...
- })
See Also
dxSlideOut
The SlideOut widget is a classic slide-out menu paired with a view. An end user opens the menu by swiping away the view.
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-slide-out
- [dataSource]="slideOutDataSource"
- (onItemClick)="closeSlideOut($event)">
- </dx-slide-out>
- import { DxSlideOutModule } from "devextreme-angular"
- // ...
- export class AppComponent {
- slideOutDataSource = [ "Item 1", "Item 2", "Item 3", "Item 4" ];
- closeSlideOut = function (e) {
- e.component.hideMenu();
- }
- }
- @NgModule({
- imports: [
- // ...
- DxSlideOutModule
- ],
- // ...
- })
See Also
dxSlideOutView
The SlideOutView widget is a classic slide-out menu paired with a view. This widget is very similar to the SlideOut with only one difference - the SlideOut always contains the List in the slide-out menu, while the SlideOutView can hold any collection there.
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-slide-out-view
- id="slideOutView"
- contentTemplate="view"
- menuTemplate="menu">
- <div *dxTemplate="let viewData of 'view'">
- <p>View content</p>
- </div>
- <div *dxTemplate="let menuData of 'menu'">
- <p>Menu content</p>
- </div>
- </dx-slide-out-view>
- import { DxSlideOutViewModule } from "devextreme-angular"
- // ...
- export class AppComponent {
- // ...
- }
- @NgModule({
- imports: [
- // ...
- DxSlideOutViewModule
- ],
- // ...
- })
- ::ng-deep #slideOutView {
- height: auto;
- position: absolute;
- top: 0;
- bottom: 0;
- width: 100%;
- }
See Also
dxSlider
The Slider is a widget that allows an end user to set a numeric value on a continuous range of possible values.
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-slider
- [min]="0"
- [max]="100"
- [value]="25">
- </dx-slider>
- import { DxSliderModule } from "devextreme-angular"
- // ...
- export class AppComponent {
- // ...
- }
- @NgModule({
- imports: [
- // ...
- DxSliderModule
- ],
- // ...
- })
See Also
dxSwitch
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-switch [value]="true"></dx-switch>
- import { DxSwitchModule } from "devextreme-angular"
- // ...
- export class AppComponent {
- // ...
- }
- @NgModule({
- imports: [
- // ...
- DxSwitchModule
- ],
- // ...
- })
See Also
dxTabPanel
The TabPanel is a widget consisting of the Tabs and MultiView widgets. It automatically synchronizes the selected tab with the currently displayed view and vice versa.
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-tab-panel [items]="tabs"></dx-tab-panel>
- import { DxTabPanelModule } from 'devextreme-angular'
- // ...
- export class AppComponent {
- tabs = [{
- title: 'Tab 1 Title',
- text: 'Tab 1 Text Content'
- }, {
- title: 'Tab 2 Title',
- text: 'Tab 2 Text Content'
- }, {
- title: 'Tab 3 Title',
- text: 'Tab 3 Text Content'
- }];
- }
- @NgModule({
- imports: [
- // ...
- DxTabPanelModule
- ],
- // ...
- })
See Also
dxTabs
The Tabs is a tab strip used to switch between pages or views. This widget is included in the TabPanel widget, but you can use the Tabs separately as well.
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-tabs [items]="tabs"></dx-tabs>
- import { DxTabsModule } from "devextreme-angular"
- // ...
- export class AppComponent {
- tabs = [
- { text: "User", icon: "user" },
- { text: "Comment", icon: "comment" },
- { text: "Find", icon: "find", badge: "new" }
- ];
- }
- @NgModule({
- imports: [
- // ...
- DxTabsModule
- ],
- // ...
- })
See Also
dxTagBox
The TagBox widget is an editor that allows an end user to select multiple items from a drop-down list.
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-tag-box
- [dataSource]="tagBoxDataSource"
- [maxDisplayedTags]="2">
- </dx-tag-box>
- import { DxTagBoxModule } from "devextreme-angular"
- // ...
- export class AppComponent {
- tagBoxDataSource = [ "Item 1", "Item 2", "Item 3" ];
- }
- @NgModule({
- imports: [
- // ...
- DxTagBoxModule
- ],
- // ...
- })
See Also
dxTextArea
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-text-area placeholder="Type a text here..."></dx-text-area>
- import { DxTextAreaModule } from "devextreme-angular"
- // ...
- export class AppComponent {
- // ...
- }
- @NgModule({
- imports: [
- // ...
- DxTextAreaModule
- ],
- // ...
- })
See Also
dxTextBox
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-text-box placeholder="Type a text here..."></dx-text-box>
- import { DxTextBoxModule } from "devextreme-angular"
- // ...
- export class AppComponent {
- // ...
- }
- @NgModule({
- imports: [
- // ...
- DxTextBoxModule
- ],
- // ...
- })
See Also
dxTileView
The TileView widget contains a collection of tiles. Tiles can store much more information than ordinary buttons, that is why they are very popular in apps designed for touch devices.
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-tile-view
- [dataSource]="tileViewDataSource"
- [baseItemHeight]="130"
- [baseItemWidth]=180>
- </dx-tile-view>
- import { DxTileViewModule } from "devextreme-angular"
- // ...
- export class AppComponent {
- tileViewDataSource = [
- { text: "Tile 1 Text" },
- { text: "Tile 2 Text" },
- { text: "Tile 3 Text" }
- ];
- }
- @NgModule({
- imports: [
- // ...
- DxTileViewModule
- ],
- // ...
- })
See Also
dxToast
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-toast
- message="Connection problem"
- type="error"
- [displayTime]="3000"
- [(visible)]="isToastVisible">
- </dx-toast>
- <dx-button
- text="Show the Toast"
- (onClick)="showToast()">
- </dx-button>
- import { DxToastModule } from "devextreme-angular"
- // ...
- export class AppComponent {
- isToastVisible = false;
- showToast() {
- this.isToastVisible = true;
- }
- }
- @NgModule({
- imports: [
- // ...
- DxToastModule
- ],
- // ...
- })
See Also
dxToolbar
The Toolbar is a widget containing items that usually manage screen content. Those items can be plain text or widgets.
The main option you should specify when creating a widget is the dataSource. The following code snippet demonstrates an example of an array that can be passed to the dataSource option of the Toolbar widget.
- var toolbarItems = [{
- widget: "dxButton",
- options: {
- type: "back",
- text: "Back"
- },
- location: "before"
- }, {
- text: "Add",
- locateInMenu: "always"
- }, {
- text: "Change",
- locateInMenu: "always"
- }, {
- text: "Products",
- location: "center"
- }];
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-toolbar [items]="toolbarData"></dx-toolbar>
- import { DxToolbarModule, DxButtonModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- toolbarData = toolbarItems;
- }
- @NgModule({
- imports: [
- // ...
- DxToolbarModule,
- DxButtonModule
- ],
- // ...
- })
See Also
dxTooltip
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <div id="targetElement"></div>
- <dx-tooltip
- target="#targetElement"
- showEvent="dxhoverstart"
- hideEvent="dxhoverend">
- <p>Tooltip content</p>
- </dx-tooltip>
- import { DxTooltipModule } from "devextreme-angular"
- // ...
- export class AppComponent {
- // ...
- }
- @NgModule({
- imports: [
- // ...
- DxTooltipModule
- ],
- // ...
- })
See Also
dxTreeList
The TreeList is a widget that represents data from a local or remote source in the form of a multi-column tree view. This widget offers such features as sorting, filtering, editing, selection, etc.
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-tree-list
- [dataSource]="employees"
- keyExpr="key"
- parentIdExpr="head">
- <dxi-column dataField="fullName"></dxi-column>
- <dxi-column dataField="position"></dxi-column>
- </dx-tree-list>
- export class AppComponent {
- employees = [
- { key: "1", fullName: "John Heart", position: "CEO" },
- { key: "1_1", head: "1", fullName: "Samantha Bright", position: "COO" },
- { key: "2_1", head: "2", fullName: "Robert Reagan", position: "CMO" },
- { key: "2", fullName: "Greta Sims", position: "HR Manager" }
- ];
- }
See Also
dxTreeView
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-tree-view
- [dataSource]="treeViewDataSource"
- dataStructure="plain">
- </dx-tree-view>
- import { DxTreeViewModule } from "devextreme-angular"
- // ...
- export class AppComponent {
- treeViewDataSource = [
- { id: "1", text: "Item 1" },
- { id: "1_1", text: "Subitem 1.1", parentId: "1" },
- { id: "1_2", text: "Subitem 1.2", parentId: "1" },
- { id: "2", text: "Item 2" },
- { id: "2_1", text: "Subitem 2.1", parentId: "2" },
- { id: "2_2", text: "Subitem 2.2", parentId: "2" }
- ];
- }
- @NgModule({
- imports: [
- // ...
- DxTreeViewModule
- ],
- // ...
- })
See Also
dxValidationGroup
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-validation-group>
- <dx-text-box name="FirstName">
- <dx-validator>
- <dxi-validation-rule type="required" message="First name is required"></dxi-validation-rule>
- ...
- </dx-validator>
- </dx-text-box>
- <dx-text-box name="LastName">
- <dx-validator>
- <dxi-validation-rule type="required" message="Last name is required"></dxi-validation-rule>
- ...
- </dx-validator>
- </dx-text-box>
- <dx-validation-summary></dx-validation-summary>
- <dx-button></dx-button>
- </dx-validation-group>
- import { DxValidationGroupModule, DxTextBoxModule, DxButtonModule, DxValidatorModule } from "devextreme-angular"
- // ...
- export class AppComponent {
- // ...
- }
- @NgModule({
- imports: [
- // ...
- DxValidationGroupModule,
- DxTextBoxModule,
- DxButtonModule,
- DxValidatorModule
- ],
- // ...
- })
See Also
You can use the DevExpress.validationEngine.validateGroup(group) method to validate a particular validation group by passing its instance as a parameter.
- DevExpress.validationEngine.validateGroup($("#sampleGroup").dxValidationGroup("instance"));
In addition, you can access a validation group's configuration using the DevExpress.validationEngine.getGroupConfig(group) method. The returned configuration exposes the validators included to the group, the validate() method to validate the editors that are associated with the validators and the validated event that occurs after the group is validated.
dxValidationSummary
A widget for displaying the result of checking validation rules for editors.
This widget has a collection of items that present the validation errors that currently exist in a validation group or the ViewModel to which the widget is related.
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-validation-group>
- <dx-text-box name="FirstName">
- <dx-validator>
- <dxi-validation-rule type="required" message="First name is required"></dxi-validation-rule>
- ...
- </dx-validator>
- </dx-text-box>
- <dx-text-box name="LastName">
- <dx-validator>
- <dxi-validation-rule type="required" message="Last name is required"></dxi-validation-rule>
- ...
- </dx-validator>
- </dx-text-box>
- <dx-validation-summary></dx-validation-summary>
- <dx-button
- text="Validate"
- (onClick)="validate()">
- </dx-button>
- </dx-validation-group>
- import { DxValidationSummaryModule, DxValidationGroupModule, DxTextBoxModule, DxButtonModule, DxValidatorModule } from "devextreme-angular"
- // ...
- export class AppComponent {
- validate(params) {
- params.validationGroup.validate();
- }
- }
- @NgModule({
- imports: [
- // ...
- DxValidationSummaryModule,
- DxValidationGroupModule,
- DxTextBoxModule,
- DxButtonModule,
- DxValidatorModule
- ],
- // ...
- })
The summary items are displayed using the default item template that is based on the message field of the broken validation rule. However, you can use a custom item template.
See Also
To learn more on how to create the ValidationSummary widget and associate it with the required validation group or ViewModel, refer to the Display Validation Errors and Knockout Only - Validate a View Model topics.
See Also
dxValidator
A widget that is used to validate the associated DevExtreme editors against the defined validation rules.
DevExtreme widgets are integrated with many popular libraries and frameworks. See the Installation section (for JavaScript libraries) or the Prerequisites and Installation section (for ASP.NET MVC framework) to find details on setting up DevExtreme with a particular library or framework.
The following code shows how to create the {WidgetName} widget using every supported library and framework. For more details on working with widgets in these libraries and frameworks, see the Widget Basics topic for jQuery, Angular, AngularJS, Knockout or ASP.NET MVC.
- <dx-text-box>
- <dx-validator>
- <dxi-validation-rule type="required" message="Value is required"></dxi-validation-rule>
- </dx-validator>
- </dx-text-box>
- import { DxValidatorModule, DxTextBoxModule } from "devextreme-angular"
- // ...
- export class AppComponent {
- // ...
- }
- @NgModule({
- imports: [
- // ...
- DxValidatorModule,
- DxTextBoxModule
- ],
- // ...
- })
See Also
The learn the validation rules that can be defined using the Validator widget for an editor, refer to the Validation Rules section.
The editors that are associated with the Validator widgets are automatically validated against the specified rules each time the event assigned to the editor's valueChangeEvent option occurs. In addition, several editors can be validated at once. To learn how to do this, refer to the Validate Several Editor Values topic.
See Also
UI Events
Name | Description |
---|---|
dxclick |
Raised when the element is clicked. |
dxcontextmenu |
Raised when the right mouse button is clicked on the element or when the element is held during a specified time period. |
dxdblclick |
Raised when a user has performed a double click on the element. |
dxdrag |
Raised when the drag gesture has been performed. |
dxdragend |
Raised when the drag gesture has been completed. |
dxdragenter |
Raised when a user moves the pointer into the element, provided that the drag gesture is being performed. |
dxdragleave |
Raised when a user moves the pointer out of the element, provided that the drag gesture is being performed. |
dxdragstart |
Raised when the drag gesture has been started. |
dxdrop |
Raised when dragged data has been dropped on the element. |
dxhold |
Raised when the element was held for a specified time. The default time interval is 750 ms. |
dxhoverend |
Raised when the mouse pointer leaves the element. |
dxhoverstart |
Raised when the mouse pointer appears over the element. |
dxpinch |
Raised when the pinch gesture has been performed. |
dxpinchend |
Raised when the pinch gesture has been completed. |
dxpinchstart |
Raised when the pinch gesture has been started. |
dxpointercancel |
Raised when the browser decides that the pointer is unlikely to produce any more events. |
dxpointerdown |
Raised when the pointer takes on the active buttons state. |
dxpointerenter |
Raised when a pointer is moved to either the hit test area of an element or one of its descendants. |
dxpointerleave |
Raised when a pointer is moved from either the hit test area of an element or one of its descendants. |
dxpointermove |
Raised when any pointer parameter has been changed. (Position, tilt, pressure, button state, or contact geometry). |
dxpointerout |
Raised when a pointer is moved from either the hit test area of an element or one of its descendants. |
dxpointerover |
Raised when a pointer is moved to the hit test area of an element or one of its descendants. |
dxpointerup |
Raised when the pointer loses the active buttons state. |
dxremove |
Raised when a widget associated with an element is being removed from the DOM. |
dxrotate |
Raised when the rotate gesture has been performed. |
dxrotateend |
Raised when the rotate gesture has been completed. |
dxrotatestart |
Raised when the rotate gesture has been started. |
dxswipe |
Raised when the swipe gesture has been performed. |
dxswipeend |
Raised when the swipe gesture is finished. |
dxswipestart |
Raised when the swipe gesture is started. |
dxtransform |
Raised when the transform gesture has been performed. |
dxtransformend |
Raised when the transform gesture has been completed. |
dxtransformstart |
Raised when the transform gesture has been started. |
dxtranslate |
Raised when the translate gesture has been performed. |
dxtranslateend |
Raised when the translate gesture has been completed. |
dxtranslatestart |
Raised when the translate gesture has been started. |
DevExtreme provides UI events for processing a user's interaction with a specific UI element. The DevExpress.events namespace exposes an API to work with the UI events.
The following code shows how to attach, trigger and then detach a dxhold event handler from a page element with the target
ID. The timeout
parameter specifies how long the target
should be held to allow the handler to execute:
- import { on, trigger, off } from "devextreme/events";
- // ...
- export class AppComponent implements AfterViewInit {
- ngAfterViewInit() {
- const dxholdHandler = (event) => {
- alert(`The ${event.target.textContent} element was held for ${event.data.timeout} ms.`);
- return true; // true - continues event propagation, false - stops
- }
- const target: HTMLElement = document.getElementById("target");
- on(target, "dxhold", { timeout: 1000 }, dxholdHandler);
- trigger(target, "dxhold");
- off(target, "dxhold", dxholdHandler);
- }
- }
CSS Classes
This section describes the DevExtreme CSS classes you can use to define the appearance of an element.
If you have technical questions, please create a support ticket in the DevExpress Support Center.