행번호 표시 테이블 생성 javascript함수 추가

main
이범준 5 months ago
parent f1c291fc71
commit 79b2895b5e

@ -135,3 +135,19 @@ function fnMakeResizableTable(containerEl){
containerEl.addHandle();
}
/**************************************************************************
* 번호 표시 테이블
**************************************************************************/
function fnMakeRowNumberingTable(tbody, markerFinder, markerSetter){
var moCallbackFunc = function(mutationList, observer){
var target = mutationList[0].target;
$(target).find("tr").each(function(idx, item){
markerSetter(markerFinder(item),idx+1);
});
};
var mo = new MutationObserver(moCallbackFunc);
mo.observe(tbody, {childList : true});
}
Loading…
Cancel
Save