bga-dice
    Preparing search index...

    Interface AddDieToVoidStockSettings

    interface AddDieToVoidStockSettings {
        fadeIn?: boolean;
        forceToElement?: HTMLElement;
        fromElement?: HTMLElement;
        fromStock?: DiceStock<any>;
        index?: number;
        remove?: boolean;
        selectable?: boolean;
        [key: string]: any;
    }

    Hierarchy (View Summary)

    Indexable

    • [key: string]: any
    Index

    Properties

    fadeIn?: boolean

    Indicates if we add a fade in effect when adding card (if it comes from an invisible or abstract element).

    forceToElement?: HTMLElement
    fromElement?: HTMLElement

    The element to move the die from.

    fromStock?: DiceStock<any>

    The stock to take the die. It will automatically remove the die from the other stock.

    index?: number

    Force die position. Default to end of list. Do not use if sort is defined, as it will override it.

    remove?: boolean

    Removes the die after adding. Set to false if you want to add the die to the void to stock to animate it to another stock just after. Default true

    selectable?: boolean

    Set if the card is selectable. Default is true, but will be ignored if the stock is not selectable.