Package dev.gmitch215.bytebox.html
Interface EndTag
- All Superinterfaces:
org.teavm.jso.JSObject
public interface EndTag
extends org.teavm.jso.JSObject
An element's end tag, given to a handler from
Element.onEndTag(EndTagHandler).- Since:
- 1.0.3
-
Method Summary
Modifier and TypeMethodDescriptionInserts text after the end tag.after(String content, ContentOptions options) Inserts content after the end tag.Inserts text before the end tag.before(String content, ContentOptions options) Inserts content before the end tag.getName()Returns the tag name.remove()Removes the end tag.voidRenames the tag.Methods inherited from interface org.teavm.jso.JSObject
cast
-
Method Details
-
getName
String getName()Returns the tag name.- Returns:
- the tag name
-
setName
Renames the tag.- Parameters:
name- the new name
-
before
Inserts text before the end tag.- Parameters:
content- the text, escaped- Returns:
- this end tag
-
before
Inserts content before the end tag.- Parameters:
content- the contentoptions- how to read it- Returns:
- this end tag
-
after
Inserts text after the end tag.- Parameters:
content- the text, escaped- Returns:
- this end tag
-
after
Inserts content after the end tag.- Parameters:
content- the contentoptions- how to read it- Returns:
- this end tag
-
remove
EndTag remove()Removes the end tag.- Returns:
- this end tag
-