Skip to main content

DevelopmentNodeEnvironment_MicrosoftVSCodeDependency_22NodeVersion_Bundle_Clean_Debug_ElectronProfile_EsbuildCompiler_Mountain/Command/TreeView/
OnTreeViewExpansionChanged.rs

1//! Tauri command - notify the provider when a tree node is
2//! expanded / collapsed.
3//!
4//! ## Stub
5//!
6//! Wire `OnTreeNodeExpanded` into `CommonTreeViewProvider` and
7//! dispatch here so providers can lazily load child items or persist
8//! expansion state across sessions.
9
10use std::sync::Arc;
11
12use serde_json::{Value, json};
13use tauri::{AppHandle, State, Wry, command};
14
15use crate::{ApplicationState::State::ApplicationState::ApplicationState, dev_log};
16
17#[command]
18pub async fn OnTreeViewExpansionChanged(
19	_ApplicationHandle:AppHandle<Wry>,
20
21	_State:State<'_, Arc<ApplicationState>>,
22
23	_ViewId:String,
24
25	_ElementHandle:String,
26
27	_IsExpanded:bool,
28) -> Result<Value, String> {
29	dev_log!("commands", "warn: OnTreeViewExpansionChanged not implemented");
30
31	Ok(json!({ "success": false, "error": "OnTreeNodeExpanded method not implemented" }))
32}