How to use the dom-lib.removeClass function in dom-lib

To help you get started, we’ve selected a few dom-lib 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 rsuite / rsuite / src / mixins / ClassNameMixin.js View on Github external
removeClass: function (className, target = findDOMNode(this)) {
        return removeClass(target, className);
    toggleClass: function (className, target = findDOMNode(this)) {
github rsuite / rsuite-table / src / utils / toggleClass.js View on Github external
const toggleClass = (node: HTMLElement, className: string, condition: boolean) => {
  if (condition) {
    addClass(node, className);
  } else {
    removeClass(node, className);