bastilian-tabletools
    Preparing search index...

    Function useSelectionManager

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

      Parameters

      • preselected: any[]

        Array of items initially selected

      • Optionaloptions: object = {}

        function to call when a selection is made

      • handleSelect: Function

        function to call when a selection is made

      Returns object

      Object containing the current selection state and functions to manipulate it