{"id":12021,"date":"2022-02-16T19:20:49","date_gmt":"2022-02-16T10:20:49","guid":{"rendered":"http:\/\/www.gisdeveloper.co.kr\/?p=12021"},"modified":"2022-02-24T21:41:13","modified_gmt":"2022-02-24T12:41:13","slug":"gwc-ui-library-gwccreatemodaldialog-%ed%95%a8%ec%88%98","status":"publish","type":"post","link":"http:\/\/www.gisdeveloper.co.kr\/?p=12021","title":{"rendered":"#GWC UI Library : gwcCreateModalDialog \ud568\uc218 [DEPRECATED]"},"content":{"rendered":"<p>\uc6f9 UI \ub77c\uc774\ube0c\ub7ec\ub9ac\uc778 GWC\uc5d0\uc11c \uc81c\uacf5\ud558\ub294 gwcCreateModalDialog \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=\"btn\" title=\"\ub300\ud654\uc0c1\uc790 \ud45c\uc2dc\"><\/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    flex-direction: column;\r\n    gap: 1em;\r\n}\r\n\r\n.hcenter {\r\n    display: flex;\r\n    align-items: center;\r\n    flex-direction: column;\r\n    padding: 0.3em;\r\n    gap: 0.6em;\r\n }\r\n\r\n.vcenter {\r\n    display: flex;\r\n    align-items: center;\r\n}\r\n\r\ngwc-textinput {\r\n    width: 20em;\r\n}\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    btn.addEventListener(\"click\", () => {\r\n        const dlg = gwcCreateModalDialog(\"\ubaa8\ub2ec \ub300\ud654\uc0c1\uc790\");\r\n        dlg.content = `\r\n            <div class=\"hcenter\">\r\n                <div class=\"vcenter\">\r\n                    <gwc-label content=\"\uc88c\uc6b0\uba85\" outline-type=\"concave\"><\/gwc-label>\r\n                    <gwc-textinput value=\"\uc778\uac04\uc740 \ub9d0\uc774 \uc544\ub2cc \ud589\uc704\ub85c \uc815\uc758\ub41c\ub2e4.\"><\/gwc-textinput>\r\n                <\/div>\r\n                <gwc-button title=\"\ud655\uc778\"><\/gwc-button>\r\n            <\/div>\r\n        `;\r\n    \r\n        dlg.content.querySelector(\"gwc-button\").addEventListener(\"click\", () => {\r\n            dlg.remove();\r\n        });\r\n\r\n        dlg.show();\r\n    \r\n    });\r\n\r\n    \/\/GeoServiceWebComponentManager.instance.update();\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\/02\/gwc-modal-dialog.mp4\" \/>\ube44\ub514\uc624\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\ub294 \uc6f9\ube0c\ub77c\uc6b0\uc838\uc785\ub2c8\ub2e4.<\/video><\/center><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc6f9 UI \ub77c\uc774\ube0c\ub7ec\ub9ac\uc778 GWC\uc5d0\uc11c \uc81c\uacf5\ud558\ub294 gwcCreateModalDialog \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; flex-direction: column; gap: 1em; } .hcenter { display: flex; align-items: center; flex-direction: column; padding: 0.3em; gap: 0.6em; } .vcenter { display: flex; align-items: &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/www.gisdeveloper.co.kr\/?p=12021\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;#GWC UI Library : gwcCreateModalDialog \ud568\uc218 [DEPRECATED]&#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-12021","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\/12021","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=12021"}],"version-history":[{"count":10,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/12021\/revisions"}],"predecessor-version":[{"id":12089,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/12021\/revisions\/12089"}],"wp:attachment":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12021"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12021"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}