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

Method add_row

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

Source from the content-addressed store, hash-verified

50 pub fn new(completion_engine: Option<CompletionEngine>, cx: &mut Context<Self>) -> Self {
51 Self {
52 rows: Vec::new(),
53 focus_handle: cx.focus_handle(),
54 completion_engine,
55 }
56 }
57
58 pub fn add_row(&mut self, window: &mut Window, cx: &mut Context<Self>) {
59 let completion_engine = self.completion_engine.clone();
60 let key_input = cx.new(|cx| {
61 configure_completion(
62 InputState::new(window, cx).placeholder("Key"),
63 completion_engine.as_ref(),
64 CompletionContext::FormName,
65 )
66 });
67 let completion_engine = self.completion_engine.clone();

Callers 1

renderMethod · 0.45

Calls 1

newMethod · 0.45

Tested by

no test coverage detected