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

Method create

src/drawer.rs:79–90  ·  view source on GitHub ↗
(props: Self::Properties, link: ComponentLink<Self>)

Source from the content-addressed store, hash-verified

77 type Properties = DrawerProps;
78
79 fn create(props: Self::Properties, link: ComponentLink<Self>) -> Self {
80 props.link.borrow_mut().replace(link);
81 // Drawer::ensure_loaded();
82 Self {
83 props,
84 node_ref: NodeRef::default(),
85 opened_listener: None,
86 closed_listener: None,
87 animation_frame: 0,
88 animation_timer: 0,
89 }
90 }
91
92 fn update(&mut self, msg: Self::Message) -> ShouldRender {
93 match msg {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected