From 79b2895b5ea2d3e86a2b4be3b633bd2321ec7bf0 Mon Sep 17 00:00:00 2001 From: leebj Date: Tue, 18 Jun 2024 13:17:35 +0900 Subject: [PATCH] =?UTF-8?q?=ED=96=89=EB=B2=88=ED=98=B8=20=ED=91=9C?= =?UTF-8?q?=EC=8B=9C=20=ED=85=8C=EC=9D=B4=EB=B8=94=20=EC=83=9D=EC=84=B1=20?= =?UTF-8?q?javascript=ED=95=A8=EC=88=98=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/applib/js/componentization.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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