Interface ILayout<I extends ILayout>

    • Method Detail

      • getSpacing

        @Nullable
        default java.lang.String getSpacing()
        Returns the spacing between adjacent children, or null if the default spacing is used.

        Default: "0.3em" (means to use the default spacing).

      • withSpacing

        I withSpacing​(@Nullable
                      java.lang.String spacing)
        Returns a copy of this immutable component with the specified spacing.

        Sets the spacing between adjacent children.

        Parameters:
        spacing - The spacing (such as "0", "5px", "3pt" or "1em"). If the spacing is set to "auto", null, or empty (""), the DOM style is left intact, so the spacing can be customized from CSS.

        Default: "0.3em".

        Returns:
        A modified copy of the this object