How to use the tui-code-snippet/domUtil/addClass function in tui-code-snippet

To help you get started, weโ€™ve selected a few tui-code-snippet examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nhn / toast-ui.select-box / src / js / input.js View on Github external
disable() {
    addClass(this.el, cls.DISABLED);
  }
github nhn / toast-ui.select-box / src / js / item.js View on Github external
highlight() {
    if (!this.isDisabled()) {
      addClass(this.el, cls.HIGHLIGHT);
      this.el.focus();
    }
  }
github nhn / toast-ui.select-box / src / js / Option.js View on Github external
changeSelected(selected) {
    this.selected = this.nativeEl.selected = selected;
    if (selected) {
      addClass(this.el, SELECTED_CLASS_NAME);
    } else {
      removeClass(this.el, SELECTED_CLASS_NAME);
    }
  }
github nhn / toast-ui.select-box / src / js / Option.js View on Github external
changeHighlight(highlight) {
    if (highlight) {
      addClass(this.el, HIGHLIGHT_CLASS_NAME);
    } else {
      removeClass(this.el, HIGHLIGHT_CLASS_NAME);
    }
  }
github nhn / toast-ui.select-box / src / js / itemGroup.js View on Github external
disable() {
    this.disabled = this.nativeEl.disabled = true;
    addClass(this.labelEl, cls.DISABLED);
    this.items.forEach(item => item.disableItemGroup());
  }
github nhn / toast-ui.select-box / src / js / item.js View on Github external
makeDisable() {
    this.nativeEl.disabled = true;
    addClass(this.el, cls.DISABLED);
  }
github nhn / toast-ui.select-box / src / js / Dropdown.js View on Github external
changeDisabled(disabled) {
    if (this.disabled !== disabled) {
      this.disabled = this.nativeEl.disabled = disabled;
      if (disabled) {
        addClass(this.el, DISABLED_CLASS_NAME);
      } else {
        removeClass(this.el, DISABLED_CLASS_NAME);
      }
    }
  }
github nhn / tui.context-menu / src / js / floatingLayer.js View on Github external
initializeContainer(manager) {
    manager.appendChild(this.container);

    css(this.container, {
      display: 'none',
      position: 'absolute',
      'z-index': manager.zIndex
    });
    addClass(this.container, 'floating-layer');
  }