How to use the min-dom.classes function in min-dom

To help you get started, we’ve selected a few min-dom 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 bpmn-io / bpmn-js-properties-panel / test / spec / provider / camunda / ExecutionListenerPropertiesSpec.js View on Github external
it('should undo', inject(function(commandStack) {

          // undo/redo for every field change
          commandStack.undo();
          commandStack.undo();

          expect(domClasses(eventType).has('bpp-hidden')).to.be.true;
          expect(domClasses(listenerType).has('bpp-hidden')).to.be.true;
          expect(domClasses(listenerValue.parentElement).has('bpp-hidden')).to.be.true;

        }));
github bpmn-io / bpmn-js-properties-panel / test / spec / provider / camunda / FieldInjectionSpec.js View on Github external
return inject(function(propertiesPanel, selection, elementRegistry) {

        var field = getter(propertiesPanel._container, inputNode);

        if (parentElement) {
          field = field.parentElement;
        }

        // then
        if (visible) {
          expect(field).to.exist;
        } else {
          expect(domClasses(field).has('bpp-hidden')).to.be.true;
        }
      });
    }
github bpmn-io / bpmn-js-properties-panel / test / spec / provider / camunda / ListenerFieldInjectionSpec.js View on Github external
return inject(function(propertiesPanel, selection, elementRegistry) {

        var field = getter(propertiesPanel._container, inputNode);

        if (parentElement) {
          field = field.parentElement;
        }

        // then
        if (visible) {
          expect(field).to.exist;
        } else {
          expect(domClasses(field).has('bpp-hidden')).to.be.true;
        }
      });
    }
github bpmn-io / bpmn-js-properties-panel / lib / PropertiesPanel.js View on Github external
function checkActiveTabVisibility(node, visible) {
    var isActive = domClasses(node).has('bpp-active');
    if (!visible && isActive) {
      self.activateTab(current.tabs[0]);
    }
  }
github bpmn-io / bpmn-js-properties-panel / lib / PropertiesPanel.js View on Github external
groupNode.addEventListener('click', function(evt) {
        if (!evt.defaultPrevented && domClasses(groupNode).has('group-closed')) {
          domClasses(groupNode).remove('group-closed');
        }
      });

min-dom

A minimal dom utility toolbelt

MIT
Latest version published 5 months ago

Package Health Score

68 / 100
Full package analysis