(&self)
| 109 | } |
| 110 | |
| 111 | fn view(&self) -> Html { |
| 112 | // timeoutMs=self.props.timeout_ms |
| 113 | // closeOnEscape=self.props.close_on_escape |
| 114 | // labelText=self.props.label_text |
| 115 | // stacked?=to_option(self.props.stacked) |
| 116 | // leading?=to_option(self.props.leading) |
| 117 | // ref=self.node_ref.clone() |
| 118 | // >{ self.props.children.clone() } |
| 119 | |
| 120 | html! { |
| 121 | <div class="mdc-snackbar"> |
| 122 | <div class="mdc-snackbar__surface" role="status" aria-relevant="additions"> |
| 123 | <div class="mdc-snackbar__label" aria-atomic="false"> |
| 124 | { "Can't send photo. Retry in 5 seconds." } |
| 125 | </div> |
| 126 | <div class="mdc-snackbar__actions" aria-atomic="true"> |
| 127 | <button type="button" class="mdc-button mdc-snackbar__action"> |
| 128 | <div class="mdc-button__ripple"></div> |
| 129 | <span class="mdc-button__label">{ "Retry" }</span> |
| 130 | </button> |
| 131 | </div> |
| 132 | </div> |
| 133 | </div> |
| 134 | } |
| 135 | } |
| 136 | |
| 137 | fn rendered(&mut self, first_render: bool) { |
| 138 | // let element = self.node_ref.cast::<Snackbar>().unwrap(); |
nothing calls this directly
no outgoing calls
no test coverage detected