我有一张桌子
我使用 Datatable 自动呈现导出按钮。我不知道如何强制它与搜索输入框对齐。
这是我的代码
<div class="row">
<div class="col-md-12">
<div class="panel panel-filled">
<div class="panel-body">
<input type="text" class="form-control mb20" id="inputSearch" placeholder="Search">
<table class="table table-responsive-sm">
<thead>
<tr>
<th></th>
<th>Event</th>
<th>Node ID</th>
<th>Timestamp</th>
</tr>
</thead>
<tbody>
@foreach($sysEvents as $sysEvent)
<?php
$faIcon = App\Models\Log::getLogIcon($sysEvent->logLevel);
$faHexColor = App\Models\Log::getLogColor($sysEvent->logLevel);
?>
<tr>
<td class="text-center"><i class="fa fa-{{ $faIcon }}" style="color: {{ $faHexColor }}"></i></td>
<td> {{ $sysEvent->healthEventMessage }}</td>
<td style="color:#1bbf89; " >{{ $sysEvent->deviceId }}</td>
<td class="text-accent"> {{ $sysEvent->createdAt }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
相关分类