fix : 상단 그리드 페이징 처리 수정

dev
이범준 5 months ago
parent 9c6eadf4bd
commit 1f94a172b6

@ -121,6 +121,11 @@
</div>
</div>
</div>
<div class="d-flex flex-row p-3 justify-content-between">
<label id="${infoPrefix}Paging--${pageName}PagingInfo" class="dataTables_info" role="status" aria-live="polite"></label>
<ul id="${infoPrefix}Paging--${pageName}" class="pagination pagination-primary" style="display: none;">
</ul>
</div>
<!-- / DataTables(그리드) -->
<div class="card">
<div class="row g-1">
@ -167,11 +172,7 @@
</div> <!-- <div class="row g-1"> -->
</div> <!-- <div class="card"> -->
<div class="d-flex flex-row p-3 justify-content-between">
<label id="userPagingInfo" class="dataTables_info" role="status" aria-live="polite">1 ~ 2 / 2</label>
<ul id="userPaging" class="pagination pagination-primary" style="display: none;">
</ul>
</div>
<script>
@ -242,9 +243,9 @@
$P.control.onDatasetChange = (obj) => {
$P.renderList(obj.${infoPrefix}Total);
$("#paging--${pageName}").setPaging({
list: $P.control.dataset
, prefix: "paging--${pageName}"
$("#${infoPrefix}Paging--${pageName}").setPagingInfo({
list: obj.${infoPrefix}List
, prefix: "${infoPrefix}Paging--${pageName}"
, start: obj.${infoPrefix}Start
, totalSize: obj.${infoPrefix}Total
, fetchSize: obj.${infoPrefix}Fetch

Loading…
Cancel
Save