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

Method remove_header

src/components/header_editor.rs:192–203  ·  view source on GitHub ↗

Remove a header row by index

(&mut self, index: usize, cx: &mut Context<Self>)

Source from the content-addressed store, hash-verified

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| {

Callers 1

renderMethod · 0.45

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected