feat: implement move column move row with tests
This commit is contained in:
committed by
Nicolás Hatcher Andrés
parent
7dc49d5dd7
commit
c2777c73ac
@@ -234,6 +234,25 @@ impl Model {
|
||||
.map_err(to_js_error)
|
||||
}
|
||||
|
||||
#[wasm_bindgen(js_name = "moveColumn")]
|
||||
pub fn move_column_action(
|
||||
&mut self,
|
||||
sheet: u32,
|
||||
column: i32,
|
||||
delta: i32,
|
||||
) -> Result<(), JsError> {
|
||||
self.model
|
||||
.move_column_action(sheet, column, delta)
|
||||
.map_err(to_js_error)
|
||||
}
|
||||
|
||||
#[wasm_bindgen(js_name = "moveRow")]
|
||||
pub fn move_row_action(&mut self, sheet: u32, row: i32, delta: i32) -> Result<(), JsError> {
|
||||
self.model
|
||||
.move_row_action(sheet, row, delta)
|
||||
.map_err(to_js_error)
|
||||
}
|
||||
|
||||
#[wasm_bindgen(js_name = "setRowsHeight")]
|
||||
pub fn set_rows_height(
|
||||
&mut self,
|
||||
|
||||
Reference in New Issue
Block a user