@pretty-chitty/core
    Preparing search index...

    Class SparkChit

    Hierarchy (View Summary)

    Index

    Accessors

    • get parentOutletIndex(): number | undefined

      Returns number | undefined

    • get parentOutlet(): string | undefined

      Returns string | undefined

    • get isClickable(): boolean

      Returns true if the chit is currently clickable

      Returns boolean

    • get currentTurn(): Turn<any, any, any>

      Returns Turn<any, any, any>

    Constructors

    Methods

    • Parameters

      • OptionalnewValue: Chit
      • OptionalparentOutlet: string
      • OptionalparentOutletIndex: number

      Returns void

    • Creates a DragPick options for the chit(s). Create an array of DragTargets that these chits can be dropped on.

      Type Parameters

      Parameters

      • chit: T | OrderedOutlet<T> | (false | T | null | undefined)[]

        A single chit, an array of chits (that can be empty-ish or nullish and ignored), or an OrderedOutlet of chits

      • targets: DragTarget<any, T> | DragTarget<any, T>[]

        An array of DragTargets that the chits can be dropped on

      Returns DragPick<T>

      A DragPick instance configured with the specified chits and targets

    Properties

    id?: string
    orderedChildren: OrderedOutlet<Chit> = ...
    isDropTarget: boolean = false