feat(centralui): TreeView checkbox-selection mode with tri-state

This commit is contained in:
Joseph Doherty
2026-05-24 05:13:04 -04:00
parent 9a3f5231db
commit e099ed2038
4 changed files with 323 additions and 0 deletions

View File

@@ -4,5 +4,13 @@ window.treeviewStorage = {
},
load: function (storageKey) {
return sessionStorage.getItem("treeview:" + storageKey);
},
// Blazor cannot bind input.indeterminate natively (only `checked`). The
// TreeView's Checkbox-selection mode calls this from OnAfterRenderAsync to
// toggle the tri-state visual on each render.
setIndeterminate: function (el, value) {
if (el) {
el.indeterminate = !!value;
}
}
};