Method
add_row
(&mut self, window: &mut Window, cx: &mut Context<Self>)
Source from the content-addressed store, hash-verified
| 46 | |
| 47 | #[allow(dead_code)] |
| 48 | impl FormDataEditor { |
| 49 | pub fn new(completion_engine: Option<CompletionEngine>, cx: &mut Context<Self>) -> Self { |
| 50 | Self { |
| 51 | rows: Vec::new(), |
| 52 | bulk_mode: false, |
| 53 | bulk_editor: None, |
| 54 | focus_handle: cx.focus_handle(), |
| 55 | completion_engine, |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | fn ensure_bulk_editor(&mut self, window: &mut Window, cx: &mut Context<Self>) { |
| 60 | if self.bulk_editor.is_none() { |
| 61 | let completion_engine = self.completion_engine.clone(); |
| 62 | self.bulk_editor = Some(cx.new(|cx| { |
Tested by
no test coverage detected