com.vaadin.polymer.iron.IronSignalsElement Maven / Gradle / Ivy
The newest version!
/*
* This code was generated with Vaadin Web Component GWT API Generator,
* from iron-signals project by The Polymer Authors
* that is licensed with http://polymer.github.io/LICENSE.txt license.
*/
package com.vaadin.polymer.iron;
import com.vaadin.polymer.elemental.*;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.JsArray;
import jsinterop.annotations.JsOverlay;
import jsinterop.annotations.JsProperty;
import jsinterop.annotations.JsType;
/**
* iron-signals
provides basic publish-subscribe functionality.
* Note: avoid using iron-signals
whenever you can use
a controller (parent element) to mediate communication
instead.
* To send a signal, fire a custom event of type iron-signal
, with
a detail object containing name
and data
fields.
* this.fire('iron-signal', {name: 'hello', data: null});
*
*
*
To receive a signal, listen for iron-signal-<name>
event on a
iron-signals
element.
*
*
* You can fire a signal event from anywhere, and all
iron-signals
elements will receive the event, regardless
of where they are in DOM.
*/
@JsType(isNative=true)
public interface IronSignalsElement extends HTMLElement {
@JsOverlay public static final String TAG = "iron-signals";
@JsOverlay public static final String SRC = "iron-signals/iron-signals.html";
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy