PowerHorse Engine
    Preparing search index...

    Type Alias BoxComponentProps

    BoxComponentProps: Props<Frame> & {
        alignment?: Enum.VerticalAlignment | Enum.HorizontalAlignment;
        FillDirection?: Enum.FillDirection;
        HorizontalAlignment?: Enum.HorizontalAlignment;
        HorizontalFlex?: Enum.UIFlexAlignment;
        ItemLineAlignment?: Enum.ItemLineAlignment;
        Padding?: UDim;
        SortOrder?: Enum.SortOrder;
        UIPadding?: number | Vector2 | UDim | [UDim, UDim, UDim, UDim];
        VerticalAlignment?: Enum.VerticalAlignment;
        VerticalFlex?: Enum.UIFlexAlignment;
        Wraps?: boolean;
    }

    A Frame with UIPadding and UIListLayout support.

    Type Declaration

    • Optionalalignment?: Enum.VerticalAlignment | Enum.HorizontalAlignment

      Applied respectively to the HorizontalAlignment and VerticalAlignment, If the alignment provided exists on both Vertical and Horizontal axis, it will be applied to both. e.g. Center.

    • OptionalFillDirection?: Enum.FillDirection

      FillDirection applied to the UIListLayout.

    • OptionalHorizontalAlignment?: Enum.HorizontalAlignment

      HorizontalAlignment applied to the UIListLayout.

    • OptionalHorizontalFlex?: Enum.UIFlexAlignment

      HorizontalFlex applied to the UIListLayout.

    • OptionalItemLineAlignment?: Enum.ItemLineAlignment

      ItemLineAlignment applied to the UIListLayout.

    • OptionalPadding?: UDim
    • OptionalSortOrder?: Enum.SortOrder

      SortOrder applied to the UIListLayout.

    • OptionalUIPadding?: number | Vector2 | UDim | [UDim, UDim, UDim, UDim]

      Padding applied to the created UIPadding, NOT the Padding of the UIListLayout.

      • if a number, all sides will have the offset of the number provided.
      • if a Vector2, left and right will have values of X, top and bottom will have values of Y.
      • if a UDim, UDim will be applied to all sides.
      • If an array of UDims, In order: left, top, right, bottom.
    • OptionalVerticalAlignment?: Enum.VerticalAlignment

      VerticalAlignment applied to the UIListLayout.

    • OptionalVerticalFlex?: Enum.UIFlexAlignment

      VerticalFlex applied to the UIListLayout.

    • OptionalWraps?: boolean

      Wraps applied to the UIListLayout.