1import { Controller } from '@hotwired/stimulus'; 2 3/** 4 * @domain UI íì ìí 5 * @concern í¸ë¦¬ê±° ê°ì ë°ë¼ íë 그룹 ì í 6 * @description í¸ë¦¬ê±°(select·input)ì íì¬ ê°ê³¼ ì¼ì¹íë ê·¸ë£¹ë§ ë³´ì´ê³ ë머ì§ë ì¨ê²¨ ê·¸ ì ë ¥ì ë¹íì±ííë 컨í¸ë¡¤ë¬ 7 */ 8export default class extends Controller { 9 static targets = ['trigger', 'group']; 10 static classes = ['hidden']; 11 12 connect() { 13 this.update(); 14 } 15 16 update() { 17 this.groupTargets.forEach((group) => { 18 const on = group.dataset.matchValue === this.triggerTarget.value; 19 group.classList.toggle(this.hiddenClass, !on); 20 // ì¨ê¸´ 그룹ì ì ë ¥ì ë¹íì±íí´ ì ì¶ëì§ ìê² íë¤. 21 group.querySelectorAll('input, select').forEach((el) => { 22 el.disabled = !on; 23 }); 24 }); 25 } 26}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.