How to use the aurelia-pal.DOM.createElement function in aurelia-pal

To help you get started, we’ve selected a few aurelia-pal 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 aurelia / ui-virtualization / dist / es2015 / template-strategy.js View on Github external
createTopBufferElement(element) {
    const elementName = /^[uo]l$/.test(element.parentNode.localName) ? 'li' : 'div';
    const buffer = DOM.createElement(elementName);
    const tableElement = element.parentNode.parentNode;
    tableElement.parentNode.insertBefore(buffer, tableElement);
    buffer.innerHTML = ' ';
    return buffer;
  }
github aurelia / ui-virtualization / dist / native-modules / template-strategy.js View on Github external
TableStrategy.prototype.createTopBufferElement = function createTopBufferElement(element) {
    var elementName = /^[uo]l$/.test(element.parentNode.localName) ? 'li' : 'div';
    var buffer = DOM.createElement(elementName);
    var tableElement = element.parentNode.parentNode;
    tableElement.parentNode.insertBefore(buffer, tableElement);
    buffer.innerHTML = ' ';
    return buffer;
  };
github aurelia / ui-virtualization / dist / aurelia-ui-virtualization.js View on Github external
createTopBufferElement(element: Element): Element {
    const elementName = /^[uo]l$/.test(element.parentNode.localName) ? 'li' : 'div';
    const buffer = DOM.createElement(elementName);
    const tableElement = element.parentNode.parentNode;
    tableElement.parentNode.insertBefore(buffer, tableElement);
    buffer.innerHTML = ' ';
    return buffer;
  }
github aurelia / ui-virtualization / src / template-strategy-default.ts View on Github external
createBuffers(element: Element): [HTMLElement, HTMLElement] {
    const parent = element.parentNode;
    return [
      parent.insertBefore(DOM.createElement('div'), element),
      parent.insertBefore(DOM.createElement('div'), element.nextSibling)
    ];
  }
github aurelia / ui-virtualization / dist / es2015 / aurelia-ui-virtualization.js View on Github external
createBuffers(element) {
        const parent = element.parentNode;
        return [
            parent.insertBefore(DOM.createElement('div'), element),
            parent.insertBefore(DOM.createElement('div'), element.nextSibling)
        ];
    }
    removeBuffers(el, topBuffer, bottomBuffer) {

aurelia-pal

Aurelia's platform abstraction layer (PAL).

MIT
Latest version published 6 years ago

Package Health Score

53 / 100
Full package analysis