@Retention(value=RUNTIME) @Target(value=PARAMETER) @Documented public @interface ModelItem
Can be applied on parameters with classes found in the TemplateModel
.
This is by default a shorthand for @EventData("event.model.item")
that works with List
type model items. For other Model items define
the value to be the methodName e.g. for setSubItem(...)
use
@ModelItem("subItem")
.
Recommend using LitTemplate
instead of PolymerTemplate as Polymer
will be deprecated in the next LTS version.
public abstract String value
Copyright © 2025. All rights reserved.