Strata - v1.4.10
    Preparing search index...

    Interface InventoryConfig

    Configuration for an inventory grid or container.

    interface InventoryConfig {
        allowDrag?: boolean;
        backgroundColor?: string;
        columns: number;
        rarityColors?: Record<string, string>;
        rows: number;
        selectedSlotBorderColor?: string;
        showQuantity?: boolean;
        showTooltips?: boolean;
        slotBackgroundColor?: string;
        slotBorderColor?: string;
        slotGap?: number;
        slots: InventorySlot[];
        slotSize?: number;
    }
    Index

    Properties

    allowDrag?: boolean

    Whether to allow dragging items between slots.

    backgroundColor?: string

    CSS-compatible background color for the container.

    columns: number

    Number of columns in the grid.

    rarityColors?: Record<string, string>

    Mapping of rarity names to CSS-compatible color strings.

    rows: number

    Number of rows in the grid.

    selectedSlotBorderColor?: string

    Border color for the currently selected slot.

    showQuantity?: boolean

    Whether to display item quantities.

    showTooltips?: boolean

    Whether to show information tooltips on hover.

    slotBackgroundColor?: string

    CSS-compatible background color for each slot.

    slotBorderColor?: string

    CSS-compatible border color for each slot.

    slotGap?: number

    Gap between slots in pixels.

    slots: InventorySlot[]

    Array of slots defining the inventory contents.

    slotSize?: number

    Pixel size of each slot.