JavaScript/jQuery Markup Components Item
Type:
The dxItem component defines custom markup for items in layout and collection widgets. dxItem has different options depending on the widget where it is used. See the Default Item Template section in a specific widget's API Reference for a full list of them.
jQuery
HTML
<div id="navBarContainer"> <div data-options="dxItem: { disabled: true }"> <!-- custom markup --> </div> <div data-options="dxItem: { badge: 'New'}"> <!-- custom markup --> </div> <div data-options="dxItem: { }"> <!-- custom markup --> </div> </div>
AngularJS
HTML
<div dx-nav-bar="{ }"> <div data-options="dxItem: { disabled: true }"> <!-- custom markup --> </div> <div data-options="dxItem: { badge: 'New'}"> <!-- custom markup --> </div> <div data-options="dxItem: { }"> <!-- custom markup --> </div> </div>
Knockout
HTML
<div data-bind="dxNavBar: { }"> <div data-options="dxItem: { disabled: true }"> <!-- custom markup --> </div> <div data-options="dxItem: { badge: 'New'}"> <!-- custom markup --> </div> <div data-options="dxItem: { }"> <!-- custom markup --> </div> </div>
NOTE
dxItem elements are ignored when the dataSource option is defined.
Feel free to share topic-related thoughts here.
If you have technical questions, please create a support ticket in the DevExpress Support Center.
Thank you for the feedback!
If you have technical questions, please create a support ticket in the DevExpress Support Center.