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

Method view

src/icon_button.rs:61–74  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

59 }
60
61 fn view(&self) -> Html {
62 // html! {
63 // <button onclick=self.link.callback(|_| Msg::Clicked)>
64 // { &self.label }
65 // </button>
66 // }
67 html! {
68 <button class="mdc-button">
69 <span class="mdc-button__ripple"></span>
70 <i class="material-icons mdc-button__icon" aria-hidden="true">{ "bookmark" }</i>
71 <span class="mdc-button__label">{ &self.label }</span>
72 </button>
73 }
74 }
75}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected