com.github.fluorumlabs.disconnect.polymer.utils.PolymerDom Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of disconnect-polymer Show documentation
Show all versions of disconnect-polymer Show documentation
Polymer 3 bindings for Disconnect Zero
package com.github.fluorumlabs.disconnect.polymer.utils;
import com.github.fluorumlabs.disconnect.core.annotations.Import;
import com.github.fluorumlabs.disconnect.core.annotations.NpmPackage;
import com.github.fluorumlabs.disconnect.polymer.Polymer;
import js.web.dom.Node;
import org.teavm.jso.JSBody;
/**
* The interface Polymer dom.
*/
@NpmPackage(
name = "@polymer/polymer",
version = Polymer.VERSION
)
@Import(symbols = "matchesSelector", module = "@polymer/polymer/lib/legacy/polymer.dom.js")
@Deprecated
public interface PolymerDom {
/**
* Cross-platform element.matches
shim.
*
* @param node Node to check selector against
* @param selector Selector to match
*
* @return True if node matched selector
*/
@Deprecated
@JSBody(
params = {"node", "selector"},
script = "return matchesSelector(node, selector)"
)
static boolean matchesSelector(Node node, String selector) {
throw new UnsupportedOperationException("Available only in JavaScript");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy