All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.gwt.angular.client.impl.JsNgElement Maven / Gradle / Ivy

There is a newer version: 1.1.1
Show newest version
package com.google.gwt.angular.client.impl;

import com.google.gwt.angular.client.NgElement;
import elemental.events.EventListener;
import elemental.js.dom.JsElement;

/**
 * JSO implementation of NgElement.
 */
public class JsNgElement extends JsElement implements NgElement {
  protected JsNgElement() {
  }

  @Override
  final public native void bind(String eventType, Runnable func) /*-{
    this.bind(eventType, $entry(function () {
      [email protected]::run()();
    }));
  }-*/;

  @Override
  final public native void bind(String eventType, EventListener listener) /*-{
    this.bind(eventType, $entry(@elemental.js.dom.JsElementalMixinBase::getHandlerFor(Lelemental/events/EventListener;)(listener)));
  }-*/;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy