ChemPal Documentation - v0.0.13-beta.5
    Preparing search index...

    Interface ProductOption

    Represents product options in Searchanise. Options are customizable aspects of a product like size, color, etc. Uses an index signature to allow any string key with various value types.

    const option: ProductOption = {
    Size: "500g",
    Purity: "99.9%",
    Grade: "ACS",
    IsHazardous: true,
    OrderLimit: 5
    };
    interface ProductOption {
        id: string;
        key: string;
        title: string;
        optionType: string;
        selections: ProductSelection[];
        [key: string]: undefined | string | number | boolean;
    }

    Indexable

    • [key: string]: undefined | string | number | boolean

      Dynamic key-value pairs for product options. Keys are option names and values can be strings, numbers, or booleans. Undefined is allowed to represent unset options.

    Index

    Properties

    id: string

    Unique identifier for the option

    key: string

    Machine-readable key identifier for the option

    title: string

    Human-readable display title of the option

    optionType: string

    Type of option UI control (e.g. "dropdown", "radio")

    selections: ProductSelection[]

    Array of available selections for this option