{"id":11850,"date":"2022-01-08T08:23:24","date_gmt":"2022-01-07T23:23:24","guid":{"rendered":"http:\/\/www.gisdeveloper.co.kr\/?p=11850"},"modified":"2022-01-12T08:10:33","modified_gmt":"2022-01-11T23:10:33","slug":"gwc-ui-library-radiogroup","status":"publish","type":"post","link":"http:\/\/www.gisdeveloper.co.kr\/?p=11850","title":{"rendered":"#GWC UI Library : RadioGroup"},"content":{"rendered":"<p>\uc6f9 UI \ub77c\uc774\ube0c\ub7ec\ub9ac\uc778 GWC\uc5d0\uc11c \uc81c\uacf5\ud558\ub294 RadioGroup \ucef4\ud3ec\ub10c\ud2b8\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-label id=\"label\" content=\"RadioGroup \uc0c1\ud0dc \uc774\ubca4\ud2b8 \uc815\ubcf4\" outline-type=\"concave\"><\/gwc-label>\r\n    <div>\r\n        <gwc-label content=\"\ub77c\ub514\uc624 \uadf8\ub8f91\"><\/gwc-label>\r\n        <gwc-radiogroup id=\"radiogroup1\" selected-index=2>\r\n            <items>\r\n                <item>\uc778\uac04\uc740<\/item>\r\n                <item>\ub9d0\uc774 \uc544\ub2cc<\/item>\r\n                <item>\ud589\uc704\ub85c<\/item>\r\n                <item>\uc815\uc758\ub41c\ub2e4.<\/item>\r\n            <\/items>\r\n        <\/gwc-radiogroup>\r\n    <\/div>\r\n    <div>\r\n        <gwc-label content=\"\ub77c\ub514\uc624 \uadf8\ub8f92\"><\/gwc-label>\r\n        <gwc-radiogroup id=\"radiogroup2\" selected-index=3>\r\n            <items>\r\n                <item>HUMAN<\/item>\r\n                <item>IS DEFINED<\/item>\r\n                <item>BY NOT WORD<\/item>\r\n                <item>BUT ACT.<\/item>\r\n            <\/items>\r\n        <\/gwc-radiogroup>\r\n    <\/div>            \r\n    <gwc-button id=\"button\" title=\"\uc0c1\ud0dc \ud655\uc778\" \/>\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: 3em;\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    const onChange = (event) => {\r\n        const radioGroup = event.target;\r\n        label.content = `\r\n             <span style=\"color:yellow\">${radioGroup.id}<\/span>\uc758 \uc120\ud0dd\uc740 \r\n             \"<span style=\"color:yellow\">${radioGroup.selectedTitle}<\/span>\"\uc785\ub2c8\ub2e4.\r\n        `;\r\n     };\r\n\r\n    radiogroup1.addEventListener(\"change\", onChange);\r\n    radiogroup2.addEventListener(\"change\", onChange);\r\n\r\n    button.addEventListener(\"click\", () => {\r\n        const txtRadioGroup1 = `${radiogroup1.selectedTitle}(${radiogroup1.selectedIndex})`;\r\n        const txtRadioGroup2 = `${radiogroup2.selectedTitle}(${radiogroup2.selectedIndex})`;\r\n\r\n        gwcMessage(`\r\n            radiogroup1: ${txtRadioGroup1}<br>\r\n            radiogroup2: ${txtRadioGroup2}\r\n        `);\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\/01\/gwc-radiobutton.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 RadioGroup \ucef4\ud3ec\ub10c\ud2b8\uc5d0 \ub300\ud55c \uc608\uc81c \ucf54\ub4dc\uc785\ub2c8\ub2e4. \uba3c\uc800 DOM \uad6c\uc131\uc740 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4. \uc778\uac04\uc740 \ub9d0\uc774 \uc544\ub2cc \ud589\uc704\ub85c \uc815\uc758\ub41c\ub2e4. HUMAN IS DEFINED BY NOT WORD BUT ACT. \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: 3em; } js \ucf54\ub4dc\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4. window.onload &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/www.gisdeveloper.co.kr\/?p=11850\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;#GWC UI Library : RadioGroup&#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-11850","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\/11850","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=11850"}],"version-history":[{"count":4,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/11850\/revisions"}],"predecessor-version":[{"id":11914,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/11850\/revisions\/11914"}],"wp:attachment":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11850"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11850"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11850"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}