Your search did not match any results.

This demo illustrates how to display an icon within the Button widget. You can use a built-in or external font, or use an image as an icon.

Copy to CodePen
$(function(){ $("#icon-done").dxButton({ icon: "check", type: "success", text: "Done", onClick: function(e) { DevExpress.ui.notify("The Done button was clicked"); } }); $("#icon-weather").dxButton({ icon: "../../../../images/icons/weather.png", text: "Weather", onClick: function(e) { DevExpress.ui.notify("The Weather button was clicked"); } }); $("#icon-send").dxButton({ icon: 'fa fa-envelope-o', text: "Send", onClick: function(e) { DevExpress.ui.notify("The Send button was clicked"); } }); $("#icon-plus").dxButton({ icon: "plus", onClick: function(e) { DevExpress.ui.notify("The button was clicked"); } }); });
<!DOCTYPE html> <html> <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=1.0" /> <script src=""></script> <script>window.jQuery || document.write(decodeURIComponent('%3Cscript src="js/jquery-3.1.0.min.js"%3E%3C/script%3E'))</script> <link rel="stylesheet" type="text/css" href="" /> <link rel="stylesheet" type="text/css" href="" /> <link rel="dx-theme" data-theme="generic.light" href="" /> <link rel="dx-theme" data-theme="android5.light" href="" /> <link rel="dx-theme" data-theme="ios7.default" href="" /> <link rel="dx-theme" data-theme="" href="" /> <link rel="dx-theme" data-theme="win10.white" href="" /> <link rel="stylesheet" type="text/css" href=""> <script src=""></script> <link rel="stylesheet" type ="text/css" href ="styles.css" /> <script src="index.js"></script> </head> <body class="dx-viewport"> <div class="demo-container"> <div class="dx-fieldset"> <div class="dx-field"> <div class="dx-field-label">Built-in icon</div> <div class="dx-field-value"> <div id="icon-done"></div> </div> </div> <div class="dx-field"> <div class="dx-field-label">Image icon</div> <div class="dx-field-value"> <div id="icon-weather"></div> </div> </div> <div class="dx-field"> <div class="dx-field-label">External icon</div> <div class="dx-field-value"> <div id="icon-send" class="send"></div> </div> </div> <div class="dx-field"> <div class="dx-field-label">Icon only</div> <div class="dx-field-value"> <div id="icon-plus"></div> </div> </div> </div> </div> </body> </html>
.dx-fieldset { max-width: 400px; } .send .dx-button-content .dx-icon { font-size: 18px; }