Skip to content

Releases: hal/elemento

Elemento 1.2.13

06 Feb 16:31
28d4251
Compare
Choose a tag to compare

Added

  • HasElement.run(Consumer<B>) to executes code in the context of the builder

Changed

  • Deprecate HasElement.id() in favour of HasElement.uniqueId()

Elemento 1.2.12

15 Jan 12:30
d5cffd5
Compare
Choose a tag to compare

Added

  • Add support for elemental2.dom.AddEventListenerOptions in EventType.bind() methods
  • Add method Elements.isElementInView(HTMLElement, HTMLElement, boolean) to check if an element is (partially) visible
    within the viewable area of its container

Elemento 1.2.11

14 Dec 06:56
af4acaf
Compare
Choose a tag to compare

Added

  • Add support for <picture/> element
  • Add Scheduler class with method debounce(int timeout, Callback callback)
  • Add ClassList class to add, remove, replace, toggle and iterate over CSS classes

Elemento 1.2.10

12 Dec 09:53
c1ac8e4
Compare
Choose a tag to compare

Added

  • Add clipboard support
  • Add method to generate UUIDs: Id.uuid()
  • Add methods to register a resize observer for elements:
    • Elements.resizeObserver(IsElement<E>, ResizeCallback)
    • Elements.resizeObserver(HTMLElement, ResizeCallback)

Elemento 1.2.9

30 Nov 14:02
33a0d42
Compare
Choose a tag to compare

Fixed

  • Fix bug in Attachable

Elemento 1.2.8

28 Nov 08:24
f5fe0b2
Compare
Choose a tag to compare

Added

  • Add overloaded style() methods to HasSVGElement:

    • style(String style): Appends the given style to the existing styles of an element.
    • style(String style, boolean append): Appends or sets the given style of an element.
    • style(String property, int value): Sets the given style property on an element.
    • style(String property, String value): Sets the given style property on an element.
    • style(String property, int value, boolean important): Sets the given style property on an element.
    • style(String property, String value, boolean important): Sets the given style property on an element.
  • Add methods to debug elements. Both methods return a string representation of the given element with all attributes, but without the child elements (only the number of child elements is included).

    • Elements.toString(IsElement<E>)
    • Elements.toString(Element)

Elemento 1.2.7

29 Oct 07:32
28a6c72
Compare
Choose a tag to compare

Changed

  • Optimize attach/detach implementation

Elemento 1.2.6

24 Oct 15:18
6f30fcb
Compare
Choose a tag to compare

Added

  • Add method Attachable.unregister(HTMLElement)

Fixed

  • Fix method HasHTMLElement.style(String property, String value, boolean important)

Elemento 1.2.5

24 Oct 08:19
b54b656
Compare
Choose a tag to compare

Added

  • Add overloaded style() methods to HasHTMLElement:

    • style(String style): Appends the given style to the existing styles of an element.
    • style(String style, boolean append): Appends or sets the given style of an element.
    • style(String property, int value): Sets the given style property on an element.
    • style(String property, String value): Sets the given style property on an element.
    • style(String property, int value, boolean important): Sets the given style property on an element.
    • style(String property, String value, boolean important): Sets the given style property on an element.

Elemento 1.2.4

18 Oct 08:17
f6f7e82
Compare
Choose a tag to compare

Added

  • New methods

    • Elements.isAttached(IsElement<E>) and
    • Elements.isAttached(Node)

    to test if an element/node is attached to the DOM by using the Node.isConnected property.

Changed

  • Changed method HasHTMLElement.style(String) to append a style definition rather than overwrite the existing styles.