How to use the tui-code-snippet/domUtil/removeClass 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 / item.js View on Github external
makeEnable() {
    this.nativeEl.disabled = false;
    removeClass(this.el, cls.DISABLED);
  }
github nhn / toast-ui.select-box / src / js / item.js View on Github external
dehighlight() {
    removeClass(this.el, cls.HIGHLIGHT);
    this.el.blur();
  }
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 / toast-ui.select-box / src / js / itemGroup.js View on Github external
enable() {
    this.disabled = this.nativeEl.disabled = false;
    removeClass(this.labelEl, cls.DISABLED);
    this.items.forEach(item => item.enableItemGroup());
  }
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 / dropdown.js View on Github external
enable() {
    this.nativeEl.disabled = false;
    removeClass(this.el, cls.DISABLED);
  }
github nhn / toast-ui.select-box / src / js / Dropdown.js View on Github external
changeOpened(opened) {
    if (opened) {
      removeClass(this.el, HIDDEN_CLASS_NAME);
      if (this.selectedOption) {
        this.highlight();
      }
    } else {
      addClass(this.el, HIDDEN_CLASS_NAME);
      this.dehighlight();
    }
  }
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 / input.js View on Github external
close() {
    removeClass(this.el, cls.OPEN);
  }