Remove a header row by index
(&mut self, index: usize, cx: &mut Context<Self>)
| 190 | } |
| 191 | } |
| 192 | |
| 193 | pub fn toggle_bulk_mode(&mut self, window: &mut Window, cx: &mut Context<Self>) { |
| 194 | if self.bulk_mode { |
| 195 | self.exit_bulk_mode(window, cx); |
| 196 | } else { |
| 197 | self.enter_bulk_mode(window, cx); |
| 198 | } |
| 199 | } |
| 200 | |
| 201 | fn enter_bulk_mode(&mut self, window: &mut Window, cx: &mut Context<Self>) { |
| 202 | self.populate_pending_headers(window, cx); |
| 203 | let text = serialize_bulk_kv(&self.rows_as_bulk_entries(cx)); |
| 204 | self.ensure_bulk_editor(window, cx); |
| 205 | if let Some(ref editor) = self.bulk_editor { |
| 206 | editor.update(cx, |state, cx| { |