pub fn SheetInspector(_: SheetInspectorProps) -> ElementExpand description
Renders named accepted cells with bound controls and visible capability diagnostics.
Numeric values retain their exact primitive codecs; derived cells remain
editable. Output, relevance, forced and invalid states come from publication,
not a second mutable model. Failed-model inspection is never attempted. The
presentation prop chooses the surrounding chrome; see InspectorPresentation.
- Complexity: O(named cells + displayed bytes) plus bound-control lookups.
§Examples
use adam_web_ui::{SheetInspector, InspectorPresentation, binding::*, build_sheet};
use dioxus::prelude::*;
use std::rc::Rc;
fn app() -> Element {
let factory: ModelFactory = Rc::new(||
build_sheet("sheet s { cell count: i32 = 1; }", "s.adm2"));
match use_sheet(factory, "s/v1".into(), EventHandler::new(|_| {})) {
Ok(sheet) => rsx! {
SheetInspector { sheet, presentation: InspectorPresentation::Card }
},
Err(error) => rsx! { pre { "{error:?}" } },
}
}§Props
For details, see the props struct definition.
sheet:SheetHandlepresentation:InspectorPresentation