reactive_graph_std_state_model/component/
state.rs1use crate::NAMESPACE_STATE;
2use reactive_graph_graph::component_model;
3use reactive_graph_graph::component_ty;
4use reactive_graph_graph::properties;
5
6properties!(StateProperties, (STATE, "state", 0), (SET_STATE, "set_state", 0));
7
8component_ty!(COMPONENT_STATE, NAMESPACE_STATE, COMPONENT_NAME_STATE, "state");
9
10component_model!(SetState, set set_state value);
11
12component_model!(SetStateBoolean, set set_state bool);
13
14component_model!(SetStateNumber, set set_state f64);
15
16component_model!(SetStateString, set set_state string);
17
18component_model!(SetStateArray, set set_state array);
19
20component_model!(SetStateObject, set set_state object);