@minecraft/server-editor
    Preparing search index...

    Interface IImagePropertyItemOptionsBeta

    Optional properties for Image property item

    interface IImagePropertyItemOptions {
        alignment?: LayoutAlignment;
        enable?: boolean;
        imageSize?: number | { height: number; width: number };
        onClick?: (x: number, y: number) => void;
        visible?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    alignment?: LayoutAlignment

    Alignment of the image in the container. If not defined, LayoutAlignment.Left is used.

    enable?: boolean

    Initial enabled state of property item. If undefined, it will default to true.

    imageSize?: number | { height: number; width: number }

    Size of the image. If undefined, defaults to 10.

    onClick?: (x: number, y: number) => void

    Called when image is clicked.

    visible?: boolean

    Initial visibility state of property item. If undefined, it will default to true.