Your search did not match any results.
Field Set

Overview

Documentation
DevExtreme comes with the "dx-fieldset" CSS class that defines the appearance of an element displaying a list of field-value pairs. Each fieldset item is displayed within a separate field element, which has the "dx-field" class. The field element may include label and value elements defined by the "dx-field-label" and "dx-field-value" classes, respectively.

jQuery

Copy to Codepen
Apply
Reset
$(function(){ $("#address").dxTextBox({ value: '424 N Main St.' }); $("#city").dxTextBox({ value: 'San Diego' }); $("#notes").dxTextArea({ value: "Kevin is our hard-working shipping manager and has been helping that department work like clockwork for 18 months. When not in the office, he is usually on the basketball court playing pick-up games.", height: 80 }); });
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <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="js/jquery-3.1.0.min.js"></script> <link rel="stylesheet" type="text/css" href="https://cdn3.devexpress.com/jslib/17.1.3/css/dx.spa.css" /> <link rel="stylesheet" type="text/css" href="https://cdn3.devexpress.com/jslib/17.1.3/css/dx.common.css" /> <link rel="dx-theme" data-theme="generic.light" href="https://cdn3.devexpress.com/jslib/17.1.3/css/dx.light.css" /> <link rel="dx-theme" data-theme="android5.light" href="https://cdn3.devexpress.com/jslib/17.1.3/css/dx.android5.light.css" /> <link rel="dx-theme" data-theme="ios7.default" href="https://cdn3.devexpress.com/jslib/17.1.3/css/dx.ios7.default.css" /> <link rel="dx-theme" data-theme="win10.black" href="https://cdn3.devexpress.com/jslib/17.1.3/css/dx.win10.black.css" /> <link rel="dx-theme" data-theme="win10.white" href="https://cdn3.devexpress.com/jslib/17.1.3/css/dx.win10.white.css" /> <script src="https://cdn3.devexpress.com/jslib/17.1.3/js/dx.all.js"></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="form"> <div class="dx-fieldset"> <div class="dx-fieldset-header">Simple Field Set</div> <div class="dx-field"> <div class="dx-field-label">Full Name</div> <div class="dx-field-value-static">Kevin Carter</div> </div> <div class="dx-field"> <div class="dx-field-label">Position</div> <div class="dx-field-value-static">Shipping Manager</div> </div> </div> <div class="dx-fieldset"> <div class="dx-fieldset-header">Field Set with DevExtreme Widgets</div> <div class="dx-field"> <div class="dx-field-label">Address</div> <div class="dx-field-value"> <div id="address"></div> </div> </div> <div class="dx-field"> <div class="dx-field-label">City</div> <div class="dx-field-value" id="city"></div> </div> </div> <div class="dx-fieldset" id="notes-container"> <div class="dx-fieldset-header">Field Set with Custom Value Width</div> <div class="dx-field"> <div class="dx-field-label">Notes</div> <div class="dx-field-value"> <div id="notes"></div> </div> </div> </div> </div> </div> </body> </html>
.dx-fieldset:first-child > h4:first-child { margin-top: 0; } #notes-container > .dx-field > .dx-field-label { width: 20%; } #notes-container > .dx-field > .dx-field-value { width: 80%; }