Skip to content

Would like a way to disable the checkbox for specific nodes #107

@zgr024

Description

@zgr024
const treeState = {
  name: 'root [half checked and opened]',
  checked: 0.5,   // half check: some children are checked
  isOpen: true,   // this folder is opened, we can see it's children
  children: [
    { name: 'children 1 [not checked]', checked: 0 },
    {
      name: 'children 2 [half checked and not opened]',
      checked: 0.5,
      isOpen: false,
      isDisabled: true,    // <--- add this optional property to disable the checkbox
      children: [
        { name: 'children 2-1 [not checked]', checked: 0, isDisabled: true },
        { name: 'children 2-2 [checked]', checked: 1 },
      ],
    },
  ],
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions