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 Details

    • getName

      String getName()
      Returns the tag name.
      Returns:
      the tag name
    • setName

      void setName(String name)
      Renames the tag.
      Parameters:
      name - the new name
    • before

      EndTag before(String content)
      Inserts text before the end tag.
      Parameters:
      content - the text, escaped
      Returns:
      this end tag
    • before

      EndTag before(String content, ContentOptions options)
      Inserts content before the end tag.
      Parameters:
      content - the content
      options - how to read it
      Returns:
      this end tag
    • after

      EndTag after(String content)
      Inserts text after the end tag.
      Parameters:
      content - the text, escaped
      Returns:
      this end tag
    • after

      EndTag after(String content, ContentOptions options)
      Inserts content after the end tag.
      Parameters:
      content - the content
      options - how to read it
      Returns:
      this end tag
    • remove

      EndTag remove()
      Removes the end tag.
      Returns:
      this end tag