com.vaadin.flow.component.page.

Annotation Type Viewport


  • @Target(value=TYPE)
     @Retention(value=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 no viewport tag has been defined, a default of width=device-width, initial-scale=1.0 is used.

    Since:

    1.0

    Author:

    Vaadin Ltd

    • Field Summary

      Fields
      Modifier and Type Fields and Description
      static String DEFAULT 
    • Required Element Summary

      Required Elements
      Modifier and Type Required Element and Description
      String value

      Gets the viewport tag content.

    • Field Detail

      • DEFAULT

        public static final String DEFAULT
    • Element Detail

      • value

        public abstract String value

        Gets the viewport tag content.

        Returns:

        the viewport tag content