Skip to content

About controll checkbox with code #5248

@GuosXin

Description

@GuosXin

Description

I need to use code to control whether the checkbox is selected or not, I can't do it now.

Problem Statement

Now I have a select all checkbox. I need to judge whether the user has selected all items, and then I want to control the checkbox to select or not with code. I set the defaultIsChecked prop of the checkbox by use state hook, but it didn't refresh in view. I'm not sure if I wrote it wrong, if I did, please tell me how to make it.

Proposed Solution or API

I have no idea

Alternatives

No response

Additional Information

No response

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