diff --git a/src/main/webapp/resources/applib/js/componentization.js b/src/main/webapp/resources/applib/js/componentization.js index 5576215..6fd1166 100644 --- a/src/main/webapp/resources/applib/js/componentization.js +++ b/src/main/webapp/resources/applib/js/componentization.js @@ -134,4 +134,20 @@ 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}); } \ No newline at end of file