Annotation Type BindIcon
-
@Retention(RUNTIME) @Target({FIELD,METHOD}) @LinkkiAspect(BindIconAspectDefinitionCreator.class) public @interface BindIcon
Shows an icon for a UI component. The annotation can be added to the method bound to a UI field .
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description IconTypeiconTypeDefines how the icon should be retrievedcom.vaadin.flow.component.icon.VaadinIconvalueThe displayed icon forIconType.STATIC.
-
-
-
Element Detail
-
value
com.vaadin.flow.component.icon.VaadinIcon value
The displayed icon forIconType.STATIC.- Implementation Note:
- To support the convenient way to just use @BindIcon and directly get a dynamic icon
binding without specifying the
iconType()explicitly, we need a default value. The iconVaadinIcon.NATIVE_BUTTONseems to be a quite useless icon. However if it is necessary to use exactly this icon it is necessary to specifyiconType()asIconType.STATICexplicitly.
- Default:
- com.vaadin.flow.component.icon.VaadinIcon.NATIVE_BUTTON
-
-
-
iconType
IconType iconType
Defines how the icon should be retrieved- Default:
- org.linkki.core.defaults.ui.aspects.types.IconType.AUTO
-
-