How to use the min-dom.domify 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 / table-js / test / spec / TableSpec.js View on Github external
beforeEach(function() {
    container = domify('<div></div>');

    document.body.appendChild(container);
  });
github bpmn-io / diagram-js / test / spec / features / overlays / OverlaysSpec.js View on Github external
function createOverlay() {
  var element = highlight(domify('<div>OV<br>#' + (overlaysCounter++) + '</div>'));
  assign(element.style, { width: 40, height: 40 });
  return element;
}
github bpmn-io / bpmn-js-properties-panel / lib / popup.js View on Github external
function Popup(options) {
  options = options || {};
  this.template = options.template || this.template;
  var el = this.el = domify(this.template);

  this.header = domQuery('.popup-header', el);
  this.body = domQuery('.popup-body', el);
  this.footer = domQuery('.popup-footer', el);

  document.body.appendChild(el);

  this._attachEvents();
}
github bpmn-io / bpmn-js / lib / util / PoweredByUtil.js View on Github external
export function open() {

  if (!lightbox) {
    lightbox = domify(LIGHTBOX_MARKUP);

    domDelegate.bind(lightbox, '.backdrop', 'click', function(event) {
      document.body.removeChild(lightbox);
    });
  }

  document.body.appendChild(lightbox);
}
github bpmn-io / dmn-js / packages / dmn-js-drd / src / util / PoweredByUtil.js View on Github external
export function open() {

  if (!lightbox) {
    lightbox = domify(LIGHTBOX_MARKUP);

    domDelegate.bind(lightbox, '.backdrop', 'click', function(event) {
      document.body.removeChild(lightbox);
    });
  }

  document.body.appendChild(lightbox);
}

min-dom

A minimal dom utility toolbelt

MIT
Latest version published 5 months ago

Package Health Score

68 / 100
Full package analysis