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

    Class Chit

    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

    Constructors

    Methods

    • Type Parameters

      Parameters

      • chit: T
      • Optionaloutlet: string

      Returns T

    • Returns { __chit_id: string }

    • Returns a string representation of an object.

      Returns string

    • 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

    • Parameters

      • cb: (chit: this) => void

      Returns this

    Properties

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