MCPcopy Create free account
hub / github.com/bajrangCoder/setu / add_row

Method add_row

src/components/form_data_editor.rs:48–59  ·  view source on GitHub ↗
(&mut self, window: &mut Window, cx: &mut Context<Self>)

Source from the content-addressed store, hash-verified

46
47#[allow(dead_code)]
48impl 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| {

Callers 1

renderMethod · 0.45

Calls 1

newMethod · 0.45

Tested by

no test coverage detected