angular - Collapsing items in dx-forms
问题描述
We are currently using dx-forms and dxi-items in our page to add sections. I am trying to make these sections collapsable but looks like collapsable cannot be done with dx-forms and we should be using dx-accordion. There no examplse how we can use the dx-accordion with dx-forms
<div id="create-new-container">
<p class="title">New</p>
<dx-form class="create-form"
[(formData)]="newData"
[showRequiredMark]="false"
labelLocation="left"
>
<dxi-item #info [colCount]="2" itemType="group" caption="Description" >
<dxi-item itemType="group">
<dxi-item>
<div class="dx-field">
<div class="dx-field-label">Name</div>
<div class="dx-field-value">
<dx-text-box value="Test name" [showClearButton]="true" [disabled]=true></dx-text-box>
</div>
</div>
</dxi-item>
Can anyone please help with using according instead of the forms in devextreeme
解决方案
您可以将 DX 表单作为手风琴的一部分添加到 DX 项目中。
<dx-accordion #accordion [collapsible]="true" [multiple]="false" [animationDuration]="300">
<dxi-item title="Collapse title">
<dx-form>
<!-- Form data -->
</dx-form>
</dxi-item>
</dx-accordion>
推荐阅读
- python - SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xfc in position 38: invalid start byte
- assembly - 如果 MPLAB X 中的代码完全是用汇编语言编写的,我该如何配置它?
- swift - 在 Firebase 快照中打印具有特定单词的特定子项的所有用户?
- vscode-settings - 如何让 VS Code Bracket Colorizer 随处可用?
- javascript - 删除按钮 Yajra Datatable laravel 7 (http://localhost:8000/articles 405 (Method Not Allowed))
- list - emacs-request 格式化数据返回并隔离数据
- reactjs - React Native StackNavigator 动画方向
- laravel - Laravel - 从axios调用ajax后,控制器内部的sessionId发生变化
- javascript - 如何使用表格中的css“border-collapse:collapse”样式修复边框优先级
- reactjs - 功能组件中的 React.memo 和失效不会失效