bastilian-tabletools
    Preparing search index...

    Function useSelectionManager

    • Provides a generic API to manage selection stats of one (default) or multiple groups of selections.

      Parameters

      • selected: any[]

        Array of items initially selected

      • Optionaloptions: object = {}

        function to call when a selection is made

      Returns object

      Object containing the current selection state and functions to manipulate it