001/** To change this license header, choose License Headers in Project Properties. 002 * To change this template file, choose Tools | Templates 003 * and open the template in the editor. 004 */ 005package gwt.material.design.jscore.client.api.core; 006 007import gwt.material.design.jscore.client.api.Function; 008import jsinterop.annotations.JsProperty; 009import jsinterop.annotations.JsType; 010 011/** 012 * 013 * @author Cristian Rinaldi 014 */ 015@JsType(isNative = true) 016public class Element extends Node { 017 018 @JsProperty 019 public native DOMTokenList getClassList(); 020 021 public native void addEventListener(String event, Function fn); 022 023 public native Object querySelector(String selector); 024 025 @JsProperty 026 public native void setInnerHTML(String html); 027 028 @JsProperty 029 public native String getInnerHTML(); 030}