-
AI-powered Extensions
-
Data Grid
-
Tree List
-
Chat
-
HTML Editor
-
Form
-
-
Data Grids / Data Management
-
Data Grid
- Overview
-
Data Binding
-
Filtering
- Sorting
-
Editing
-
Grouping
-
Selection
- Focused Row
- Paging
-
Scrolling
-
Columns
- AI Assistant
-
Master-Detail
-
Data Summaries
-
Drag & Drop
-
Export to PDF
-
Export to Excel
- Appearance
-
Customization
- State Persistence
-
Adaptability
-
Keyboard Navigation
- Right-To-Left Support
-
Tree List
- Overview
-
Data Binding
-
Filtering
- Sorting
-
Editing
-
Selection
- Focused Row
- Paging
-
Columns
- Drag & Drop
- State Persistence
- Adaptability
-
Keyboard Navigation
-
Card View
-
Pivot Grid
- Overview
-
Data Binding
-
Field Management
-
Data Summaries
- Drill Down
- Filtering
-
Scrolling
-
Export to Excel
- Chart Integration
- Customization
- State Persistence
-
Filter Builder
-
-
Data Visualization
-
Charts
- Overview
-
Data Binding
-
Common Concepts
-
Axis
-
Aggregation
-
Tooltips
-
Selection
-
Customization
-
Zooming
-
Export
-
-
Area Charts
-
Bar Charts
- Bullet Charts
-
Doughnut Charts
-
Financial Charts
-
Funnel and Pyramid Charts
-
Line Charts
- Pareto Chart
-
Pie Charts
-
Point Charts
-
Polar and Radar Charts
-
Range Charts
- Sankey Chart
-
Sparkline Charts
-
Tree Map
-
Gauges
- Overview
-
Runtime update
-
Bar Gauge
-
Circular Gauge
-
Linear Gauge
-
Diagram
- Overview
-
Data Binding
-
Featured Shapes
-
Custom Shapes
-
Document Capabilities
-
User Interaction
- UI Customization
- Adaptability
-
-
Scheduling / Planning
-
Scheduler
- Overview
-
Data Binding
-
Views
-
Appointments
-
Timetable
- Editing
-
Grouping
- Virtual Scrolling
- Drag & Drop
-
Customization
- Adaptability
-
Gantt
- Overview
- Data Binding
-
Filtering
- Sorting
- Strip Lines
- Export to PDF
- Validation
-
Customization
-
-
Messaging
-
WYSIWYG Editor
-
Forms
-
Data Editors
- Overview
-
Common Concepts
-
Calendar
- Check Box
- Color Box
-
Date Box
-
Date Range Box
-
Number Box
- Radio Group
-
Range Selector
- Range Slider
- Slider
- Switch
- Text Area
- Text Box
-
Drop-Downs
- Autocomplete
-
Drop Down Box
-
Select Box
-
Tag Box
-
Lookup
-
Buttons
-
File Upload / File Management
-
File Manager
- Overview
-
File System Types
-
Customization
-
File Uploader
-
-
Popup and Notifications
-
Navigation
- Overview
- Accordion
-
Action Sheet
-
Context Menu
-
Menu
- Multi View
-
Drawer
-
Tab Panel
-
Tabs
-
Toolbar
-
Stepper
- Pagination
-
List
-
Tree View
- Right-to-Left Support
-
Layout
-
Tile View
- Splitter
-
Gallery
- Scroll View
- Box
- Responsive Box
-
-
Interactive Wrappers
-
Sortable
- Resizable
-
-
Progress Indicators
-
Maps
- Overview
-
Map
-
Vector Map
-
Data Binding
- Multiple Layers
-
Markers
- Legend
-
Zooming and Panning
-
Customization
-
-
Localization
Related Demos:
Your search did not match any results.
Angular Data Editors - Editor Appearance Variants
DevExtreme Editors include the following appearance customization properties:
-
stylingMode: "filled" | "outlined" | "underlined"
Specifies the style used for text fields. -
labelMode: "static" | "floating" | "hidden" | "outside"
Specifies label display mode.
Backend API
<div id="content-wrapper">
<div class="options">
<div class="caption">Options</div>
<div class="editors-modes">
<div class="option">
<dx-select-box
[items]="['outlined', 'filled', 'underlined']"
[inputAttr]="{ 'aria-label': 'Styling Mode' }"
stylingMode="outlined"
label="Styling Mode"
labelMode="outside"
[(value)]="stylingMode"
></dx-select-box>
</div>
<div class="option">
<dx-select-box
[items]="['floating', 'static', 'hidden', 'outside']"
[inputAttr]="{ 'aria-label': 'Label Mode' }"
stylingMode="outlined"
label="Label Mode"
labelMode="outside"
[(value)]="labelMode"
></dx-select-box>
</div>
</div>
</div>
<div class="widgets-container">
<div class="title">Edit Profile</div>
<dx-text-box
value="Olivia Peyton"
[inputAttr]="{ 'aria-label': 'Name' }"
label="Name"
id="name"
placeholder="Type..."
[stylingMode]="stylingMode"
[labelMode]="labelMode"
>
<dx-validator>
<dxi-validator-validation-rule type="required">
</dxi-validator-validation-rule>
</dx-validator>
</dx-text-box>
<dx-text-box
label="Address"
[inputAttr]="{ 'aria-label': 'Address' }"
placeholder="Type..."
id="address"
[stylingMode]="stylingMode"
[labelMode]="labelMode"
>
<dx-validator>
<dxi-validator-validation-rule type="required">
</dxi-validator-validation-rule>
</dx-validator>
</dx-text-box>
<dx-date-box
label="Hire Date"
id="hire-date"
placeholder="Select..."
[stylingMode]="stylingMode"
[labelMode]="labelMode"
[inputAttr]="{ 'aria-label': 'Hire Date' }"
>
<dx-validator>
<dxi-validator-validation-rule type="required">
</dxi-validator-validation-rule>
</dx-validator>
</dx-date-box>
<dx-date-box
[value]="birthDate"
label="Birth Date"
id="birth-date"
placeholder="Select..."
[stylingMode]="stylingMode"
[labelMode]="labelMode"
[inputAttr]="{ 'aria-label': 'Birth Date' }"
>
<dx-validator>
<dxi-validator-validation-rule type="required">
</dxi-validator-validation-rule>
</dx-validator>
</dx-date-box>
<dx-select-box
[items]="states"
placeholder="Select..."
[inputAttr]="{ 'aria-label': 'State' }"
label="State"
id="state"
[stylingMode]="stylingMode"
[labelMode]="labelMode"
validationMessagePosition="left"
>
<dx-validator>
<dxi-validator-validation-rule type="required">
</dxi-validator-validation-rule>
</dx-validator>
</dx-select-box>
<dx-text-box
label="Phone"
[inputAttr]="{ 'aria-label': 'Phone' }"
mask="(X00) 000-0000"
id="phone"
[maskRules]="phoneRules"
[stylingMode]="stylingMode"
[labelMode]="labelMode"
>
<dx-validator>
<dxi-validator-validation-rule type="required">
</dxi-validator-validation-rule>
</dx-validator>
</dx-text-box>
<dx-date-range-box
[stylingMode]="stylingMode"
[labelMode]="labelMode"
id="vacation-dates"
startDate="6/3/2023"
startDateLabel="Start Vacation Date"
endDate="12/3/2023"
endDateLabel="End Vacation Date"
></dx-date-range-box>
<dx-text-area
value="Olivia loves to sell. She has been selling DevAV products since 2012."
placeholder="Type..."
label="Notes"
id="notes"
[stylingMode]="stylingMode"
[labelMode]="labelMode"
[inputAttr]="{ 'aria-label': 'Notes' }"
></dx-text-area>
</div>
<dx-button
text="Save"
type="default"
icon="save"
id="validate"
(onClick)="validateClick($event)"
class="validate"
></dx-button>
</div>
import { bootstrapApplication } from '@angular/platform-browser';
import { Component, enableProdMode, provideZoneChangeDetection } from '@angular/core';
import {
DxSelectBoxModule,
DxTextAreaModule,
DxTagBoxModule,
DxDateBoxModule,
DxButtonModule,
DxValidatorModule,
DxDateRangeBoxModule,
DxTextBoxModule,
} from 'devextreme-angular';
import notify from 'devextreme/ui/notify';
import { EditorStyle, LabelMode } from 'devextreme-angular/common';
import { Service } from './app.service';
if (!/localhost/.test(document.location.host)) {
enableProdMode();
}
@Component({
selector: 'demo-app',
providers: [Service],
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
preserveWhitespaces: true,
imports: [
DxSelectBoxModule,
DxTextBoxModule,
DxTextAreaModule,
DxTagBoxModule,
DxDateBoxModule,
DxButtonModule,
DxValidatorModule,
DxDateRangeBoxModule,
],
})
export class AppComponent {
stylingMode: EditorStyle = 'outlined';
labelMode: LabelMode = 'static';
birthDate = new Date(1981, 5, 3);
states: string[];
phoneRules = {
X: /[02-9]/,
};
validateClick({ validationGroup }) {
const result = validationGroup.validate();
if (result.isValid) {
notify('The task was saved successfully.', 'success');
} else {
notify('The task was not saved. Please check if all fields are valid.', 'error');
}
}
constructor(service: Service) {
this.states = service.getStates();
}
}
bootstrapApplication(AppComponent, {
providers: [
provideZoneChangeDetection({ eventCoalescing: true, runCoalescing: true }),
],
});
::ng-deep #content-wrapper {
height: 680px;
}
::ng-deep .widgets-container {
display: grid;
grid-template-areas:
'title title title title'
'name name birthDate birthDate '
'address address state phone'
'hireDate hireDate range range'
'notes notes notes notes';
grid-template-columns: 1fr 1fr 1fr 1fr;
gap: 20px;
padding-left: 20px;
padding-right: 20px;
}
::ng-deep .title {
grid-area: title;
font-size: 18px;
font-weight: 500;
}
::ng-deep #name {
grid-area: name;
}
::ng-deep #address {
grid-area: address;
}
::ng-deep #birth-date {
grid-area: birthDate;
}
::ng-deep #state {
grid-area: state;
}
::ng-deep #phone {
grid-area: phone;
}
::ng-deep #hire-date {
grid-area: hireDate;
}
::ng-deep #notes {
grid-area: notes;
}
::ng-deep #vacation-dates {
grid-area: range;
}
::ng-deep #validate {
float: right;
margin-top: 20px;
margin-right: 20px;
width: 100px;
}
.options {
grid-area: options;
padding: 20px;
margin-bottom: 40px;
background-color: rgba(191, 191, 191, 0.15);
}
.caption {
font-size: 18px;
font-weight: 500;
}
::ng-deep .editors-modes {
display: flex;
}
.option {
padding-right: 20px;
margin-top: 20px;
}
import { Injectable } from '@angular/core';
const states: string[] = ['AL', 'AK', 'AZ', 'AR', 'CA', 'CO', 'CT', 'DE', 'FL', 'GA', 'HI', 'ID', 'IL', 'IN', 'IA', 'KS', 'KY', 'LA', 'ME', 'MD', 'MA', 'MI', 'MN', 'MS', 'MO', 'MT', 'NE', 'NV', 'NH', 'NJ', 'NM', 'NY', 'NC', 'ND', 'OH', 'OK', 'OR', 'PA', 'RI', 'SC', 'SD', 'TN', 'TX', 'UT', 'VT', 'VA', 'WA', 'WV', 'WI', 'WY'];
@Injectable()
export class Service {
getStates() {
return states;
}
}
<!DOCTYPE html>
<html lang="en">
<head>
<title>DevExtreme Demo</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0" />
<link rel="stylesheet" type="text/css" href="https://cdn3.devexpress.com/jslib/26.1.5/css/dx.light.css" />
</head>
<body class="dx-viewport">
<div class="demo-container">
<demo-app>Loading...</demo-app>
</div>
<script src="https://cdn.jsdelivr.net/npm/zone.js@0.16.2/bundles/zone.umd.js"></script>
<script src="./bundle.js" type="module"></script>
</body>
</html>
To specify styles globally (as an alternative to stylingMode), set the editorStylingMode property instead (editorStylingMode applies the same style to all editors on the page).
In this demo, you can use the "Styling Mode/Label Mode" drop down box (in the Options section) to modify styling and label modes.