feat(centralui): TreeView checkbox-selection mode with tri-state
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user