com.vaadin.flow.component.html.

Class IFrame

    • Constructor Detail

      • IFrame

        public IFrame()

        Creates a new iframe.

      • IFrame

        public IFrame(String src)

        Creates a new iframe with a source URL.

        Parameters:

        src - Source URL

    • Method Detail

      • setSrc

        public void setSrc(String src)

        Sets the source of the iframe.

        Parameters:

        src - Source URL.

      • getSrc

        public String getSrc()

        Gets the source of the iframe.

        Returns:

        the source of the iframe.

      • setSrcdoc

        public void setSrcdoc(String srcdoc)

        Sets the srcdoc of the iframe.

        Parameters:

        srcdoc - srcdoc URL.

      • getSrcdoc

        public Optional<String> getSrcdoc()

        Gets the srcdoc of the iframe.

        Returns:

        the srcdoc of the iframe.

      • setAllow

        public void setAllow(String allow)

        Sets the allow property to specify a feature policy.

        Parameters:

        allow - the allow attribute value.

        See Also:

        Feature Policy.

      • getAllow

        public Optional<String> getAllow()

        Gets the value of allow attribute.

        Returns:

        the currently applied allow value.

      • setName

        public void setName(String name)

        Sets the name attribute.

        Parameters:

        name - the value for the name attribute.

      • getName

        public Optional<String> getName()

        Gets the name attribute.

        Returns:

        the name attribute.