Skip to content

onSelect and onSelectAll callbacks parameters #738

Open
@gabrycaos

Description

@gabrycaos

Callbacks for onSelect and onSelectAll accept similar parameters, but "reversed":

from the storyBook

handleOnSelect = (row, isSelect)

and

handleOnSelectAll = (isSelect, rows)

swapping parameters in one of these functions (e.g handleOnSelectAll = (rows, isSelect)) can be easily for developers to manage both cases, maybe with a single function, depending on use case. I know that row is an object and rows is an array, but they can be managed with a single function in a simple scenario

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions