UPDATE: Adds ability to show/hide grid lines (#71)

This commit is contained in:
Nicolás Hatcher Andrés
2024-05-26 21:28:00 +02:00
committed by GitHub
parent 49c3b14bf0
commit b37397acb8
11 changed files with 133 additions and 1 deletions

View File

@@ -338,4 +338,20 @@ impl Model {
.set_top_left_visible_cell(top_row, top_column)
.map_err(to_js_error)
}
#[wasm_bindgen(js_name = "setShowGridLines")]
pub fn set_show_grid_lines(
&mut self,
sheet: u32,
show_grid_lines: bool,
) -> Result<(), JsError> {
self.model
.set_show_grid_lines(sheet, show_grid_lines)
.map_err(to_js_error)
}
#[wasm_bindgen(js_name = "getShowGridLines")]
pub fn get_show_grid_lines(&mut self, sheet: u32) -> Result<bool, JsError> {
self.model.get_show_grid_lines(sheet).map_err(to_js_error)
}
}