pub fn NodeEditor<N, P, C, T>(
props: NodeEditorProps<N, P, C, T>,
) -> impl IntoViewExpand description
§Required Props
- config:
impl Into<EditorConfig> - connections: [
impl Into<Signal<HashMap<C, ConnectionEntry<P, C>>>>](Signal<HashMap<C, ConnectionEntry<P, C>>>) - on_event:
Callback<GraphEvent<N, P, C>> - children:
Children
§Optional Props
- _marker:
PhantomData<T> - menu_items:
impl Into<Signal<Vec<NodeMenuItem>>>- Optional node catalog for the creation menu.
If provided, Tab/double-click opens a searchable menu.
Consumer filters this list reactively based on
menu_search.
- Optional node catalog for the creation menu.
If provided, Tab/double-click opens a searchable menu.
Consumer filters this list reactively based on
- menu_search:
RwSignal<String>- Two-way search text for the menu. Consumer reads this to filter menu_items.
- groups:
impl Into<Signal<Vec<crate::group::GroupBox<N>>>>- Optional groups to render as visual overlays behind nodes.
- on_group_event:
impl Into<Callback<crate::group::GroupEvent<N>>>- Callback for group events (rename, add/remove node).
- on_ungroup:
impl Into<Callback<String>>- Optional callback for the group header’s ungroup action.
- on_select_all:
impl Into<Callback<Vec<N>>>- Optional callback for the group header’s select-all action.
- handle:
EditorHandle- Optional consumer-owned handle. Gives code OUTSIDE the editor — a wrapping
drop target, a toolbar, a minimap — access to the live viewport and to
client/canvas coordinate conversion. See
EditorHandle.
- Optional consumer-owned handle. Gives code OUTSIDE the editor — a wrapping
drop target, a toolbar, a minimap — access to the live viewport and to
client/canvas coordinate conversion. See