Annotation Type Viewport


  • @Target(TYPE)
    @Retention(RUNTIME)
    @Inherited
    @Documented
    public @interface Viewport
    Defines a viewport tag that will be added to the HTML of the host page of a UI class.

    If you want to dynamically provide different viewport values for different browser, you should use ViewportGeneratorClass instead.

    Since:
    7.4
    Author:
    Vaadin Ltd
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.String value
      Gets the viewport tag content.
    • Element Detail

      • value

        java.lang.String value
        Gets the viewport tag content.
        Returns:
        the viewport tag content