We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.annotations.
Annotation Type ViewportGeneratorClass
-
@Target(TYPE) @Retention(RUNTIME) @Inherited @Documented public @interface ViewportGeneratorClass
Defines a viewport tag generator class that will be used for generating the content of a viewport tag that will be added to the HTML of the host page of a UI class.
If you want to use the same viewport values for all requests, you can use the simpler
Viewport
annotation instead.Since:
7.4
Author:
Vaadin Ltd
See Also:
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description Class<? extends ViewportGenerator>
value
Gets the viewport generator class to use.
-
-
-
Element Detail
-
value
Class<? extends ViewportGenerator> value
Gets the viewport generator class to use. Please note that the class must be public and have a default constructor. It must additionally be declared as static if it's declared as an inner class.
Returns:
the viewport generator class
-
-