You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.flow.component.html.

Class Pre

    • Constructor Detail

      • Pre

        public Pre()

        Creates a new empty preformatted text block.

      • Pre

        public Pre​(Component... components)

        Creates a new preformatted text block with the given child components.

        Parameters:

        components - the child components

      • Pre

        public Pre​(String text)

        Creates a new paragraph with the given text.

        Parameters:

        text - the text