com.vaadin.flow.templatemodel.
Annotation Type AllowClientUpdates
-
@Retention(value=RUNTIME) @Target(value=METHOD) @Repeatable(value=AllowClientUpdates.Container.class) @Documented public @interface AllowClientUpdates
Defines the access control setting for a model property. By default, updates are allowed only for properties that are defined with a two-way binding in the template. Two-way bindings are defined using the
{{propertyName}}
or{{propertyName:updatingEvent
syntax in templates.Use this annotation on accessors in your
TemplateModel
class to define whether it's allowed for the client to update server-side model valuesSince:
1.0
Author:
Vaadin Ltd
See Also:
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element and Description String
path
A dot separated path of the sub property that this access control setting applies to.
ClientUpdateMode
value
The client update mode to use for the designated property.
-
-
-
Element Detail
-
value
public abstract ClientUpdateMode value
The client update mode to use for the designated property.
Returns:
the client update mode to use.
Default:
com.vaadin.flow.templatemodel.ClientUpdateMode.ALLOW
-
-
-
path
public abstract String path
A dot separated path of the sub property that this access control setting applies to. Empty string by default, which will apply the access control directly to the annotated property.
Returns:
the dot separated path to the bean property for which the access control applies, empty string by default
Default:
""
-
-