-
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.
Vue Button - Icons
To add an icon to a Button, set the icon property. This demo shows how you can use this property.
Backend API
<template>
<div>
<div class="dx-fieldset">
<div class="fields-container">
<div class="dx-field">
<div class="dx-field-label">Built-in icon</div>
<div class="dx-field-value">
<DxButton
icon="check"
type="success"
text="Done"
@click="doneClick()"
/>
</div>
</div>
<div class="dx-field">
<div class="dx-field-label">Image icon</div>
<div class="dx-field-value">
<DxButton
icon="../../../../images/icons/weather.png"
text="Weather"
@click="weatherClick()"
/>
</div>
</div>
<div class="dx-field">
<div class="dx-field-label">External icon</div>
<div class="dx-field-value">
<DxButton
class="send"
icon="fa fa-envelope-o"
text="Send"
@click="sendClick()"
/>
</div>
</div>
<div class="dx-field">
<div class="dx-field-label">Icon only</div>
<div class="dx-field-value">
<DxButton
icon="plus"
@click="plusClick()"
/>
<DxButton
id="back"
icon="back"
@click="backClick()"
/>
</div>
</div>
</div>
</div>
<div class="dx-fieldset">
<div class="dx-fieldset-header">DISABLED</div>
<div class="fields-container">
<div class="dx-field">
<div class="dx-field-value">
<DxButton
:disabled="true"
icon="check"
type="success"
text="Done"
/>
</div>
</div>
<div class="dx-field">
<div class="dx-field-value">
<DxButton
:disabled="true"
icon="../../../../images/icons/weather.png"
text="Weather"
/>
</div>
</div>
<div class="dx-field">
<div class="dx-field-value">
<DxButton
:disabled="true"
class="send"
icon="fa fa-envelope-o"
text="Send"
/>
</div>
</div>
<div class="dx-field">
<div class="dx-field-value">
<DxButton
:disabled="true"
icon="plus"
/>
<DxButton
id="back-disabled"
:disabled="true"
icon="back"
/>
</div>
</div>
</div>
</div>
</div>
</template>
<script setup lang="ts">
import DxButton from 'devextreme-vue/button';
import notify from 'devextreme/ui/notify';
function weatherClick() {
notify('The Weather button was clicked');
}
function doneClick() {
notify('The Done button was clicked');
}
function sendClick() {
notify('The Send button was clicked');
}
function plusClick() {
notify('The button was clicked');
}
function backClick() {
notify('The button was clicked');
}
</script>
<style>
#back,
#back-disabled {
margin-left: 4px;
}
.dx-viewport .dx-fieldset {
width: 520px;
margin: 30px auto;
}
.dx-viewport .dx-fieldset:first-child {
margin-top: 120px;
}
.dx-viewport .dx-fieldset-header {
font-size: 16px;
}
.dx-viewport .dx-field {
display: inline-block;
margin-right: 20px;
}
.dx-viewport .dx-field-value:not(.dx-widget) > .dx-button {
float: none;
}
.dx-viewport .dx-field-value:not(.dx-switch):not(.dx-checkbox):not(.dx-button),
.dx-viewport .dx-field-label {
float: none;
width: 100%;
}
.dx-viewport .dx-field-label {
padding-left: 0;
}
.send .dx-button-content .dx-icon {
font-size: 18px;
}
.fields-container {
display: flex;
align-items: baseline;
}
.dx-field-value {
display: flex;
}
</style>
import { createApp } from 'vue';
import App from './App.vue';
createApp(App).mount('#app');
<!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" />
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" />
<link rel="stylesheet" type="text/css" href="./bundle.css" />
</head>
<body class="dx-viewport">
<div class="demo-container">
<div id="app"> </div>
</div>
<script src="bundles/vendor/vue.vendor.js"></script>
<script src="./bundle.js"></script>
</body>
</html>
-
Built-in icons
DevExtreme ships with its own icon library. Pick any icon and assign its name to the icon property. -
Image file
Set the icon value to the image file path or URI. -
3rd-party icon fonts
You can import a 3rd-party font library (this example uses Font Awesome). In such cases, set the icon property to a name that identifies the required glyph. Look up names in the imported library's documentation. -
Buttons with icons and no caption text
Define the icon, but do not define the text property. You can use the hint property to annotate the button.
Refer to the Icons help topic for additional information.