(&self)
| 118 | } |
| 119 | |
| 120 | fn view(&self) -> Html { |
| 121 | // open=self.props.open |
| 122 | // hideActions?=to_option(self.props.hide_action) |
| 123 | // stacked?=to_option(self.props.stacked) |
| 124 | // heading?=self.props.heading.as_ref() |
| 125 | // scrimClickAction?=self.props.scrim_click_action.as_ref() |
| 126 | // escapeKeyAction?=self.props.escape_key_action.as_ref() |
| 127 | // defaultAction?=self.props.default_action.as_ref() |
| 128 | // actionAttribute?=self.props.action_attribute.as_ref() |
| 129 | // initialFocusAttribute?=self.props.initial_focus_attribute.as_ref() |
| 130 | // ref=self.node_ref.clone()> |
| 131 | // { self.props.children.clone() } |
| 132 | |
| 133 | html! { |
| 134 | <div class="mdc-dialog"> |
| 135 | <div class="mdc-dialog__container"> |
| 136 | <div class="mdc-dialog__surface" |
| 137 | role="alertdialog" |
| 138 | aria-modal="true" |
| 139 | aria-labelledby="my-dialog-title" |
| 140 | aria-describedby="my-dialog-content"> |
| 141 | <div class="mdc-dialog__content" id="my-dialog-content">{ "Discard draft?" }</div> |
| 142 | <div class="mdc-dialog__actions"> |
| 143 | <button type="button" class="mdc-button mdc-dialog__button" data-mdc-dialog-action="cancel"> |
| 144 | <div class="mdc-button__ripple"></div> |
| 145 | <span class="mdc-button__label">{ "Cancel" }</span> |
| 146 | </button> |
| 147 | <button type="button" class="mdc-button mdc-dialog__button" data-mdc-dialog-action="discard"> |
| 148 | <div class="mdc-button__ripple"></div> |
| 149 | <span class="mdc-button__label">{ "Discard" }</span> |
| 150 | </button> |
| 151 | </div> |
| 152 | </div> |
| 153 | </div> |
| 154 | <div class="mdc-dialog__scrim"></div> |
| 155 | </div> |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | fn rendered(&mut self, first_render: bool) { |
| 160 | // if first_render { |
nothing calls this directly
no outgoing calls
no test coverage detected