【发布时间】:2020-10-10 09:46:29
【问题描述】:
你好,有人知道如何在反应表上实现手风琴吗?我试图在单击标题(标签)时隐藏我的整个表格。谢谢你
<div class="Asalertpf1 block" >
<FormLabel className="btn-success d-flex justify-content-center m-0">
<h6 >PF1 AS Alert</h6>
</FormLabel>
<div >
<Table striped hover responsive >
<thead className="theadAS text-white thAS" >
<tr className="text-center" >
<th>Time</th>
<th>Job Name</th>
<th>Result</th>
<th>Alarm Switch</th>
</tr>
</thead>
</Table>
</div>
<div>
<p class="text-center font-weight-bold ">
Latest Update Time:
{new Date().toDateString()}
{new Date().toLocaleTimeString()}
</p>
</div>
</div>
【问题讨论】:
-
你在用 reactstrap 吗?
-
您可以提供您的
bootstrap table code,以便我们展示您如何做到这一点,本文档将帮助您轻松实现accordion:react-bootstrap.github.io/components/accordion -
嗨,我现在编辑了代码块,我试图这样做,当我点击整个表单标签时,它会隐藏/显示整个表格,谢谢