Skip to content

Feature/disabled checkbox#108

Open
zgr024 wants to merge 2 commits intoshunjizhan:masterfrom
MortgageAutomationTechnologies:feature/disabled-checkbox
Open

Feature/disabled checkbox#108
zgr024 wants to merge 2 commits intoshunjizhan:masterfrom
MortgageAutomationTechnologies:feature/disabled-checkbox

Conversation

@zgr024
Copy link
Copy Markdown

@zgr024 zgr024 commented Jun 18, 2024

Adds the ability to disable the checkbox for an individual node

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,
      children: [
        { name: 'children 2-1 [not checked]', checked: 0 },
        { name: 'children 2-2 [checked]', checked: 1 },
        { name: 'children 2-3 [not checked] [disabled]', checked: 0, isDisabled: true },
      ],
    },
  ],
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant