Builder API and other goodies for Elemental2
Add ButtonType
enum and Elements.button(ButtonType)
Add @Loader
annotation and loader
attribute for @Route
annotation
Add options for router annotation processors:
places.package
: The package name of the generated class for the annotated places.places.class
: The class name of the generated class for the annotated places.Rename loader classes:
Loader<T>
→ LoadData<T>
LoadData
→ LoadedData
Add support for loaders in router annotation processors
Change default name of the generated class for the annotated places GeneratedPlaces
→ AnnotatedPlaces
Simplify router annotation processors
Add methods to modify the text node of an element:
Elements.textNode(elemental2.dom.Element, String)
Elements.textNode(IsElement<E>, String)
Add overloaded methods to bind events in HasElement
:
HasElement.on(EventType<V,?>, boolean, EventCallbackFn<V>)
HasElement.on(EventType<V,?>, AddEventListenerOptions, EventCallbackFn<V>)
Add Logger.isEnabled(Level)
to check if a level is enabled for a logger.
Add debug log statements logger to attach/detach implementation
Add support for category based log levels
Export methods to JavaScript to control log levels (for instance from the browser dev tools)
org.jboss.elemento.logger.Logger.setLevel(String level)
- sets the global log levelorg.jboss.elemento.logger.Logger.setLevel(String category, String level)
- overrides the log level for one categoryorg.jboss.elemento.logger.Logger.resetLevel(String category)
- resets the log level for the category to the global log levelString.valueOf()