mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
Add HTMLElement.className
This commit is contained in:
parent
9e4e26ae18
commit
8144464b0e
|
@ -28,10 +28,6 @@ import org.teavm.jso.dom.xml.Element;
|
||||||
import org.teavm.jso.dom.xml.Node;
|
import org.teavm.jso.dom.xml.Node;
|
||||||
import org.teavm.jso.dom.xml.NodeList;
|
import org.teavm.jso.dom.xml.NodeList;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @author Alexey Andreev
|
|
||||||
*/
|
|
||||||
public interface HTMLElement extends Element, ElementCSSInlineStyle, EventTarget, FocusEventTarget, MouseEventTarget,
|
public interface HTMLElement extends Element, ElementCSSInlineStyle, EventTarget, FocusEventTarget, MouseEventTarget,
|
||||||
WheelEventTarget, KeyboardEventTarget, LoadEventTarget {
|
WheelEventTarget, KeyboardEventTarget, LoadEventTarget {
|
||||||
@Override
|
@Override
|
||||||
|
@ -118,6 +114,12 @@ public interface HTMLElement extends Element, ElementCSSInlineStyle, EventTarget
|
||||||
|
|
||||||
TextRectangle getBoundingClientRect();
|
TextRectangle getBoundingClientRect();
|
||||||
|
|
||||||
|
@JSProperty
|
||||||
|
String getClassName();
|
||||||
|
|
||||||
|
@JSProperty
|
||||||
|
void setClassName(String className);
|
||||||
|
|
||||||
default HTMLElement withAttr(String name, String value) {
|
default HTMLElement withAttr(String name, String value) {
|
||||||
setAttribute(name, value);
|
setAttribute(name, value);
|
||||||
return this;
|
return this;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user