Resortable - v2.0.0-alpha.1
    Preparing search index...

    Class SelectionManagerInternal

    Manages selection state for sortable items Supports single and multi-select operations

    Implements

    Index

    Constructors

    Accessors

    Methods

    • Toggle selection of an item

      If the item is selected, it is deselected. Otherwise the item is selected; pass additive = true to keep the existing selection (multi-select behaviour) or leave it false to replace any current selection with just this item (single-select behaviour).

      Parameters

      • item: HTMLElement
      • additive: boolean = false

      Returns void

    • Select a range of items (for Shift+Click functionality)

      Parameters

      • from: HTMLElement
      • to: HTMLElement

      Returns void

    • Set focus to an item (for keyboard navigation)

      Parameters

      • item: null | HTMLElement

      Returns void