HomeWeb Components API Reference - v0.10.1
    Preparing search index...

    Class LayoutGroupComponentElement

    The LayoutGroupComponentElement interface provides properties and methods for manipulating <pc-layoutgroup> elements. The LayoutGroupComponentElement interface also inherits the properties and methods of the HTMLElement interface.

    Hierarchy (View Summary)

    Index
    • get closestApp(): AppElement | null

      The nearest ancestor <pc-app> element, or null if this element has no <pc-app> ancestor. The search starts at the parent, so an element never resolves to itself.

      Returns AppElement | null

      The closest app element, or null.

    • get closestEntity(): EntityElement | null

      The nearest ancestor <pc-entity> element, or null if this element has no <pc-entity> ancestor. The search starts at the parent, so an element never resolves to itself.

      Returns EntityElement | null

      The closest entity element, or null.

    • get component(): LayoutGroupComponent

      Gets the underlying PlayCanvas layout group component.

      Returns LayoutGroupComponent

      The layout group component.

    • get enabled(): boolean

      Gets the enabled state of the component.

      Returns boolean

      The enabled state of the component.

    • set enabled(value: boolean): void

      Sets the enabled state of the component.

      Parameters

      • value: boolean

        The enabled state of the component.

      Returns void

    • get heightFitting(): "none" | "stretch" | "shrink" | "both"

      Gets the fitting mode along the vertical axis.

      Returns "none" | "stretch" | "shrink" | "both"

      The height fitting mode.

    • set heightFitting(value: "none" | "stretch" | "shrink" | "both"): void

      Sets the fitting mode along the vertical axis. Can be none, stretch, shrink or both. Defaults to none.

      Parameters

      • value: "none" | "stretch" | "shrink" | "both"

        The height fitting mode.

      Returns void

    • get orientation(): "horizontal" | "vertical"

      Gets the orientation of the layout group.

      Returns "horizontal" | "vertical"

      The orientation.

    • set orientation(value: "horizontal" | "vertical"): void

      Sets the orientation of the layout group. Can be horizontal or vertical. Defaults to horizontal.

      Parameters

      • value: "horizontal" | "vertical"

        The orientation.

      Returns void

    • get reverseX(): boolean

      Gets whether the order of children is reversed along the horizontal axis.

      Returns boolean

      Whether the horizontal order is reversed.

    • set reverseX(value: boolean): void

      Sets whether the order of children is reversed along the horizontal axis.

      Parameters

      • value: boolean

        Whether to reverse the horizontal order.

      Returns void

    • get reverseY(): boolean

      Gets whether the order of children is reversed along the vertical axis.

      Returns boolean

      Whether the vertical order is reversed.

    • set reverseY(value: boolean): void

      Sets whether the order of children is reversed along the vertical axis.

      Parameters

      • value: boolean

        Whether to reverse the vertical order.

      Returns void

    • get widthFitting(): "none" | "stretch" | "shrink" | "both"

      Gets the fitting mode along the horizontal axis.

      Returns "none" | "stretch" | "shrink" | "both"

      The width fitting mode.

    • set widthFitting(value: "none" | "stretch" | "shrink" | "both"): void

      Sets the fitting mode along the horizontal axis. Can be none, stretch, shrink or both. Defaults to none.

      Parameters

      • value: "none" | "stretch" | "shrink" | "both"

        The width fitting mode.

      Returns void

    • Called when the element is fully initialized and ready. Subclasses should call this when they're ready. Resolves the ready promise and dispatches a bubbling, composed ready event.

      Returns void