MCPcopy Create free account
hub / github.com/angular-rust/yew-components / create

Method create

src/menu.rs:136–147  ·  view source on GitHub ↗
(props: Self::Properties, link: ComponentLink<Self>)

Source from the content-addressed store, hash-verified

134 type Properties = MenuProps;
135
136 fn create(props: Self::Properties, link: ComponentLink<Self>) -> Self {
137 props.link.borrow_mut().replace(link);
138 // Menu::ensure_loaded();
139 Self {
140 props,
141 node_ref: NodeRef::default(),
142 opened_listener: None,
143 closed_listener: None,
144 action_listener: None,
145 selected_listener: None,
146 }
147 }
148
149 fn update(&mut self, msg: Self::Message) -> ShouldRender {
150 match msg {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected