Releases: hal/elemento
Releases · hal/elemento
Elemento 1.2.13
Added
HasElement.run(Consumer<B>)
to executes code in the context of the builder
Changed
- Deprecate
HasElement.id()
in favour ofHasElement.uniqueId()
Elemento 1.2.12
Added
- Add support for
elemental2.dom.AddEventListenerOptions
inEventType.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
Added
- Add support for
<picture/>
element - Add
Scheduler
class with methoddebounce(int timeout, Callback callback)
- Add
ClassList
class to add, remove, replace, toggle and iterate over CSS classes
Elemento 1.2.10
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
Fixed
- Fix bug in
Attachable
Elemento 1.2.8
Added
-
Add overloaded
style()
methods toHasSVGElement
: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
Changed
- Optimize attach/detach implementation
Elemento 1.2.6
Added
- Add method
Attachable.unregister(HTMLElement)
Fixed
- Fix method
HasHTMLElement.style(String property, String value, boolean important)
Elemento 1.2.5
Added
-
Add overloaded
style()
methods toHasHTMLElement
: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
Added
-
New methods
Elements.isAttached(IsElement<E>)
andElements.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.