manageCheckboxStateManually property
bool?
get
manageCheckboxStateManually
By default, when the children of a tree item have already been fetched, child checkboxes are automatically managed based on the checked state of the parent tree item.
If the tree item is collapsed by default (meaning that the children haven't yet been fetched) then child checkboxes will not be updated.
To override this behavior and manage child and parent checkbox state in the extension, set this to true.
Examples where {@link TreeViewOptions.manageCheckboxStateManually} is false, the default behavior:
-
A tree item is checked, then its children are fetched. The children will be checked.
-
A tree item's parent is checked. The tree item and all of it's siblings will be checked.
ParentChild 1Child 2 When the user checks Parent, the tree will look like this:
xParentxChild 1xChild 2
- A tree item and all of it's siblings are checked. The parent will be checked.
ParentChild 1Child 2 When the user checks Child 1 and Child 2, the tree will look like this:
xParentxChild 1xChild 2
- A tree item is unchecked. The parent will be unchecked.
xParentxChild 1xChild 2 When the user unchecks Child 1, the tree will look like this:
ParentChild 1xChild 2
Implementation
_i2.bool? get manageCheckboxStateManually => _i5.getProperty(
this,
'manageCheckboxStateManually',
);
set
manageCheckboxStateManually
(bool? value)
Implementation
set manageCheckboxStateManually(_i2.bool? value) {
_i5.setProperty(
this,
'manageCheckboxStateManually',
value ?? _i6.undefined,
);
}