Codota Logo
elemental2.dom
Code IndexAdd Codota to your IDE (free)

How to use elemental2.dom

Best Java code snippets using elemental2.dom (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: org.uberfire/uberfire-workbench-client-views-patternfly

public void addMenus(final HTMLElement element) {
  if (actionsMenu == null) {
    actionsMenu = (HTMLDivElement) document.createElement("div");
    actionsMenu.classList.add("form-group");
    if (actions.hasChildNodes()) {
      actions.insertBefore(actionsMenu,
                 actions.childNodes.item(0));
    } else {
      actions.appendChild(actionsMenu);
    }
  }
  actionsMenu.appendChild(element);
}
origin: org.jresearch.dominokit/domino-ui

@Override
public void position(HTMLElement tooltip, HTMLElement target) {
  ClientRect targetRect = target.getBoundingClientRect();
  ClientRect tooltipRect = tooltip.getBoundingClientRect();
  tooltip.style.setProperty("top", ((targetRect.top + window.pageYOffset)-tooltipRect.height)+"px");
  tooltip.style.setProperty("left", targetRect.left+window.pageXOffset+((targetRect.width-tooltipRect.width)/2)+"px");
}
origin: org.kie.workbench.screens/kie-wb-common-library-client

@Override
public void removeContributor() {
  // Use of removeChild() instead of remove() for IE compatibility purposes
  for (int i = container.childNodes.getLength() - 1; i > 0; i--) {
    container.removeChild(container.childNodes.item(i));
  }
}
origin: org.uberfire/uberfire-workbench-client-views-patternfly

  @Override
  public HTMLElement apply(final MenuGroup menuItem,
               final List<HTMLElement> subMenus) {
    HTMLDivElement div = (HTMLDivElement) document.createElement("div");
    div.classList.add("form-group");
    subMenus.forEach(e -> div.appendChild(e));
    return div;
  }
}
origin: org.uberfire/uberfire-experimental-client

@Override
public void expand() {
  header.classList.remove("collapsed");
  header.setAttribute("aria-expanded", "true");
  panel.classList.add("in");
  panel.setAttribute("aria-expanded", "true");
  arrangeCaret();
}
origin: kiegroup/jbpm-wb

private String getHTMLContent(final Element element) {
  final HTMLDivElement div = (HTMLDivElement) document.createElement("div");
  div.appendChild(element);
  return div.innerHTML;
}
origin: org.uberfire/uberfire-ssh-client

@Override
public void add(SSHKeyEditor editor) {
  Element li = document.createElement("li");
  li.className = "list-group-item";
  li.appendChild(editor.getElement());
  keysContainer.appendChild(li);
}
origin: org.uberfire/uberfire-experimental-client

@Override
public void render(ExperimentalFeatureEditor editor) {
  HTMLLIElement li = (HTMLLIElement) document.createElement("li");
  li.setAttribute("class", "list-group-item");
  li.appendChild(editor.getElement());
  featuresContainer.appendChild(li);
}
origin: org.kie.workbench/kie-wb-common-dmn-client

void disableWarningHighlight() {
  final NodeList<Element> warningElements = getElement().parentNode.querySelectorAll("." + WARNING_CSS_CLASS);
  for (int i = 0; i < warningElements.length; i++) {
    warningElements.getAt(i).classList.remove(WARNING_CSS_CLASS);
  }
}
origin: org.kie.workbench/kie-wb-common-dmn-client

Element getLastSubDataTypeElement(final Element element) {
  final String parentUUID = element.getAttribute(UUID_ATTR);
  final String selector = "[" + PARENT_UUID_ATTR + "=\"" + parentUUID + "\"]";
  final NodeList<Element> nestedElements = listItems.querySelectorAll(selector);
  if (nestedElements.length == 0) {
    return element;
  } else {
    return getLastSubDataTypeElement(nestedElements.getAt((int) nestedElements.length - 1));
  }
}
origin: kiegroup/appformer

public void addMenus(final HTMLElement element) {
  if (actionsMenu == null) {
    actionsMenu = (HTMLDivElement) document.createElement("div");
    actionsMenu.classList.add("form-group");
    if (actions.hasChildNodes()) {
      actions.insertBefore(actionsMenu,
                 actions.childNodes.item(0));
    } else {
      actions.appendChild(actionsMenu);
    }
  }
  actionsMenu.appendChild(element);
}
origin: org.uberfire/uberfire-experimental-client

@Override
public void collapse() {
  header.classList.add("collapsed");
  header.setAttribute("aria-expanded", "false");
  panel.classList.remove("in");
  panel.setAttribute("aria-expanded", "false");
  arrangeCaret();
}
origin: org.jresearch.dominokit/domino-ui

@Override
public void position(HTMLElement tooltip, HTMLElement target) {
  ClientRect targetRect = target.getBoundingClientRect();
  ClientRect tooltipRect = tooltip.getBoundingClientRect();
  tooltip.style.setProperty("top", (targetRect.top+ window.pageYOffset+targetRect.height)+"px");
  tooltip.style.setProperty("left", targetRect.left+((targetRect.width-tooltipRect.width)/2)+"px");
}
origin: org.kie.workbench/kie-wb-common-dmn-client

void cleanSubTypes(final String uuid) {
  final String selector = "[" + PARENT_UUID_ATTR + "=\"" + uuid + "\"]";
  final NodeList<Element> subDataTypeRows = listItems.querySelectorAll(selector);
  for (int i = 0; i < subDataTypeRows.length; i++) {
    final Element item = subDataTypeRows.getAt(i);
    if (item != null && item.parentNode != null) {
      cleanSubTypes(item.getAttribute(UUID_ATTR));
      removeDataTypeRow(item);
    }
  }
}
origin: org.jresearch.dominokit/domino-ui

@Override
public void position(HTMLElement tooltip, HTMLElement target) {
  ClientRect targetRect = target.getBoundingClientRect();
  ClientRect tooltipRect = tooltip.getBoundingClientRect();
  tooltip.style.setProperty("top", (targetRect.top+DomGlobal.window.pageYOffset)+((targetRect.height-tooltipRect.height)/2)+"px");
  tooltip.style.setProperty("left", targetRect.left+DomGlobal.window.pageXOffset+targetRect.width+"px");
}
origin: org.jresearch.dominokit/domino-ui

@Override
public void position(HTMLElement tooltip, HTMLElement target) {
  ClientRect targetRect = target.getBoundingClientRect();
  ClientRect tooltipRect = tooltip.getBoundingClientRect();
  tooltip.style.setProperty("top", (targetRect.top+ window.pageYOffset)+((targetRect.height-tooltipRect.height)/2)+"px");
  tooltip.style.setProperty("left", targetRect.left-window.pageXOffset-tooltipRect.width+"px");
}
origin: DominoKit/domino-ui

@Override
public void position(HTMLElement tooltip, HTMLElement target) {
  ClientRect targetRect = target.getBoundingClientRect();
  ClientRect tooltipRect = tooltip.getBoundingClientRect();
  tooltip.style.setProperty("top", ((targetRect.top + window.pageYOffset)-tooltipRect.height)+"px");
  tooltip.style.setProperty("left", targetRect.left+window.pageXOffset+((targetRect.width-tooltipRect.width)/2)+"px");
}
origin: DominoKit/domino-ui

@Override
public void position(HTMLElement tooltip, HTMLElement target) {
  ClientRect targetRect = target.getBoundingClientRect();
  ClientRect tooltipRect = tooltip.getBoundingClientRect();
  tooltip.style.setProperty("top", (targetRect.top+ window.pageYOffset+targetRect.height)+"px");
  tooltip.style.setProperty("left", targetRect.left+((targetRect.width-tooltipRect.width)/2)+"px");
}
origin: DominoKit/domino-ui

@Override
public void position(HTMLElement tooltip, HTMLElement target) {
  ClientRect targetRect = target.getBoundingClientRect();
  ClientRect tooltipRect = tooltip.getBoundingClientRect();
  tooltip.style.setProperty("top", (targetRect.top+ window.pageYOffset)+((targetRect.height-tooltipRect.height)/2)+"px");
  tooltip.style.setProperty("left", targetRect.left-window.pageXOffset-tooltipRect.width+"px");
}
origin: DominoKit/domino-ui

@Override
public void position(HTMLElement tooltip, HTMLElement target) {
  ClientRect targetRect = target.getBoundingClientRect();
  ClientRect tooltipRect = tooltip.getBoundingClientRect();
  tooltip.style.setProperty("top", (targetRect.top+DomGlobal.window.pageYOffset)+((targetRect.height-tooltipRect.height)/2)+"px");
  tooltip.style.setProperty("left", targetRect.left+DomGlobal.window.pageXOffset+targetRect.width+"px");
}
elemental2.dom

Most used classes

  • DOMTokenList
  • HTMLDocument
  • HTMLDivElement
  • Element
  • HTMLUListElement
  • HTMLElement,
  • Window,
  • Console,
  • Document,
  • DomGlobal,
  • HTMLInputElement,
  • FormData,
  • HTMLAnchorElement,
  • NodeList,
  • XMLHttpRequest,
  • EventTarget,
  • HTMLBodyElement,
  • CSSStyleDeclaration,
  • HTMLOptionElement
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now