{"id":12100,"date":"2022-03-01T11:29:14","date_gmt":"2022-03-01T02:29:14","guid":{"rendered":"http:\/\/www.gisdeveloper.co.kr\/?p=12100"},"modified":"2022-09-19T23:47:40","modified_gmt":"2022-09-19T14:47:40","slug":"gwc-ui-library-gwcprogress-%ed%95%a8%ec%88%98","status":"publish","type":"post","link":"http:\/\/www.gisdeveloper.co.kr\/?p=12100","title":{"rendered":"#GWC UI Library : gwcCreateProgressDialog"},"content":{"rendered":"<p>\uc6f9 UI \ub77c\uc774\ube0c\ub7ec\ub9ac\uc778 GWC\uc5d0\uc11c \uc81c\uacf5\ud558\ub294 gwcCreateProgressDialog \ud568\uc218\uc5d0 \ub300\ud55c \uc608\uc81c \ucf54\ub4dc\uc785\ub2c8\ub2e4.<\/p>\n<p>\uba3c\uc800 DOM \uad6c\uc131\uc740 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"html\">\r\n<div class=\"center\">\r\n    <gwc-button id=\"button\" title=\"gwcProgress \ud568\uc218\"><\/gwc-button>\r\n<\/div>\r\n<\/pre>\n<p>\uadf8\ub9ac\uace0 CSS \uad6c\uc131\uc740 \ub2e4\uc74c\uacfc \uac19\uad6c\uc694.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"css\">\r\n.center {\r\n    display: flex;\r\n    width: 100%;\r\n    height: 100%;\r\n    justify-content: center;\r\n    align-items: center;\r\n}\r\n<\/pre>\n<p>js \ucf54\ub4dc\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"js\">\r\nwindow.onload = () => {\r\n    button.onclick = event => { \r\n        const dlg = gwcCreateProgressDialog({\r\n            \/\/ onCancel \uc774\ubca4\ud2b8\ub97c \uc9c0\uc815\ud558\uc9c0 \uc54a\uc744 \uacbd\uc6b0 \"\ucde8\uc18c\" \ubc84\ud2bc \ud074\ub9ad\uc2dc remove \ub9e4\uc11c\ub4dc\uac00 \uc790\ub3d9\uc73c\ub85c \ud638\ucd9c\ub428\r\n            onCancel: () => {\r\n                gwcMessage(\"\uc0ac\uc6a9\uc790\uac00 \uc9c4\ud589\uc744 \uc911\ub2e8\ud588\uc2b5\ub2c8\ub2e4.\", true);\r\n                dlg.remove(); \/\/ onCancel \uc774\ubca4\ud2b8 \uc9c0\uc815\ud588\uc744 \uacbd\uc6b0 \uc758\ub3c4\uc801\uc73c\ub85c remove \ub9e4\uc11c\ub4dc\ub97c \ud638\ucd10\ud574\uc57c \ud568\r\n            }\r\n        });\r\n\r\n        dlg.show();\r\n\r\n        let p = 0;\r\n        setInterval(() => {\r\n            dlg.percent = p;\r\n                if(p++ === 100) dlg.remove();\r\n        }, 50);\r\n\r\n        \/\/dlg.label = \"\ud14d\uc2a4\ud2b8 \uba54\uc2dc\uc9c0\";\r\n    };\r\n};\r\n<\/pre>\n<p>\uc2e4\ud589 \uacb0\uacfc\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4.<\/p>\n<p><center><video controls=\"controls\" ><source src=\"http:\/\/www.gisdeveloper.co.kr\/wp-content\/uploads\/2022\/03\/gwc-progress-dialog.mp4\" \/>\ube44\ub514\uc624\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\ub294 \uc6f9\ube0c\ub77c\uc6b0\uc838\uc785\ub2c8\ub2e4.<\/video><\/center><\/p>\n<p>cancel() \ub9e4\uc11c\ub4dc\ub97c \ud638\ucd9c\ud558\uba74 onCancel \uc774\ubca4\ud2b8\uac00 \ud638\ucd9c\ub429\ub2c8\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc6f9 UI \ub77c\uc774\ube0c\ub7ec\ub9ac\uc778 GWC\uc5d0\uc11c \uc81c\uacf5\ud558\ub294 gwcCreateProgressDialog \ud568\uc218\uc5d0 \ub300\ud55c \uc608\uc81c \ucf54\ub4dc\uc785\ub2c8\ub2e4. \uba3c\uc800 DOM \uad6c\uc131\uc740 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4. \uadf8\ub9ac\uace0 CSS \uad6c\uc131\uc740 \ub2e4\uc74c\uacfc \uac19\uad6c\uc694. .center { display: flex; width: 100%; height: 100%; justify-content: center; align-items: center; } js \ucf54\ub4dc\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4. window.onload = () => { button.onclick = event => { const dlg = gwcCreateProgressDialog({ \/\/ onCancel \uc774\ubca4\ud2b8\ub97c \uc9c0\uc815\ud558\uc9c0 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/www.gisdeveloper.co.kr\/?p=12100\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;#GWC UI Library : gwcCreateProgressDialog&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[140],"tags":[],"class_list":["post-12100","post","type-post","status-publish","format-standard","hentry","category-gwc"],"_links":{"self":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/12100","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12100"}],"version-history":[{"count":6,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/12100\/revisions"}],"predecessor-version":[{"id":12794,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/12100\/revisions\/12794"}],"wp:attachment":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12100"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}