페이징 관련 함수 추가

main
이범준 3 months ago
parent 562c4f92ca
commit c517183297

@ -360,6 +360,32 @@ const Apply = {
* 그리드 관련 기능 * 그리드 관련 기능
**************************************************************************/ **************************************************************************/
const GRID = { const GRID = {
fromResp : {
setPagingInfo : function(respList, respPaging, navUl, navSpan){
let pagination = {};
let id = navSpan.id;
pagination.prefix = id.substr(0,id.indexOf("PagingInfo"));
let dl = 0;
if(respList != null) {
dl = respList.length;
}
let s = 0;
let ts = 0;
if(respPaging && respPaging.start) {
s = respPaging.start;
}
if(respPaging && respPaging.totalSize) {
ts = respPaging.totalSize;
}
pagination.totalSize = ts;
pagination.dataLength = s + dl;
$(navUl).setPagingInfo(pagination);
}
},
setCurrentRow : function(evTarget){ setCurrentRow : function(evTarget){
if(evTarget instanceof HTMLTableCellElement){ if(evTarget instanceof HTMLTableCellElement){
let tr = evTarget.parentElement; let tr = evTarget.parentElement;

Loading…
Cancel
Save