mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
JS: add getter for Element.classList (#553)
This commit is contained in:
parent
660214aefd
commit
66ce993019
|
@ -24,6 +24,7 @@ import org.teavm.jso.dom.events.KeyboardEventTarget;
|
|||
import org.teavm.jso.dom.events.LoadEventTarget;
|
||||
import org.teavm.jso.dom.events.MouseEventTarget;
|
||||
import org.teavm.jso.dom.events.WheelEventTarget;
|
||||
import org.teavm.jso.dom.types.DOMTokenList;
|
||||
import org.teavm.jso.dom.xml.Element;
|
||||
import org.teavm.jso.dom.xml.Node;
|
||||
import org.teavm.jso.dom.xml.NodeList;
|
||||
|
@ -150,6 +151,9 @@ public interface HTMLElement extends Element, ElementCSSInlineStyle, EventTarget
|
|||
@JSProperty
|
||||
void setClassName(String className);
|
||||
|
||||
@JSProperty
|
||||
DOMTokenList getClassList();
|
||||
|
||||
default HTMLElement withAttr(String name, String value) {
|
||||
setAttribute(name, value);
|
||||
return this;
|
||||
|
|
Loading…
Reference in New Issue
Block a user