com.github.fluorumlabs.disconnect.polymer.utils.StyleGather 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.lang.Any;
import js.util.collections.Array;
import js.web.dom.HTMLStyleElement;
import js.web.webcomponents.HTMLTemplateElement;
import org.teavm.jso.JSBody;
/**
* The interface Style gather.
*/
@NpmPackage(
name = "@polymer/polymer",
version = Polymer.VERSION
)
@Import(
symbols = {"stylesFromModule", "cssFromModules", "cssFromModule", "cssFromTemplate", "cssFromModuleImports",
"stylesFromModuleImports", "stylesFromModules", "stylesFromTemplate"},
module = "@polymer/polymer/lib/utils/style-gather.js"
)
public interface StyleGather extends Any {
/**
* Returns a list of <style> elements in a space-separated list of {@code dom-module}s.
*
* @param moduleIds List of dom-module id's within which to search for css.
*
* @return Array of contained <style> elements
*/
@JSBody(params = "moduleIds", script = "return stylesFromModules(moduleIds)")
static Array stylesFromModules(String moduleIds) {
throw new UnsupportedOperationException("Available only in JavaScript");
}
/**
* Returns a list of <style> elements in a given {@code dom-module}. Styles in a {@code dom-module} can come
* either from {@code