Wagtail client-side components
    Preparing search index...

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    blockCounter: number
    blockDef: any
    childBlockCounts: Map<any, any>
    children: any[]
    container: JQuery<HTMLElement>
    countInput: JQuery<HTMLElement>
    inserters: any[]
    prefix: any
    sequenceContainer: JQuery<HTMLElement>
    sortable: any
    type: any

    Methods

    • Parameters

      • blockDef: any
      • placeholder: any
      • prefix: any
      • index: any
      • id: any
      • initialState: any
      • sequence: any
      • opts: any

      Returns StreamChild

    • Called when an 'insert new block' action is triggered: given a dict of data from the insertion control. For a StreamBlock, the dict of data consists of 'type' (the chosen block type name, as a string).

      Parameters

      • __namedParameters: { type: any }

      Returns any[]

      • The block definition, initial state, and id for the new block
    • Parameters

      • __namedParameters: { id: any; type: any; value: any }
      • index: any
      • opts: any

      Returns void

    • Parameters

      • index: any
      • valueBefore: any
      • valueAfter: any
      • shouldMoveCommentFn: any
      • opts: any

      Returns void