-
Couldn't load subscription status.
- Fork 4
Add setFreezePanes, setFreezePanesTopCell #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for contributing @henrikekblad !
It looks overall good but there are a few small nits.
Also, could you run cargo fmt in the rust/ directory?
rust/src/wrapper/worksheet.rs
Outdated
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove empty lines
rust/src/wrapper/worksheet.rs
Outdated
| /// # Examples | ||
| /// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think examples of rust_xlsxwriter should be removed so that users don't get confused.
rust/src/wrapper/worksheet.rs
Outdated
| /// # Examples | ||
| /// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
rust/src/wrapper/worksheet.rs
Outdated
|
|
||
| #[wasm_bindgen(js_name = "setFreezePanes", skip_jsdoc)] | ||
| pub fn set_freeze_panes(&self, row: xlsx::RowNum, col: xlsx::ColNum,) -> WasmResult<Worksheet> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure that rustfmt removes trailing commas but they should be removed.
rust/src/wrapper/worksheet.rs
Outdated
| /// src="https://rustxlsxwriter.github.io/images/worksheet_set_freeze_panes_top_cell.png"> | ||
| /// | ||
| #[wasm_bindgen(js_name = "setFreezePanesTopCell", skip_jsdoc)] | ||
| pub fn set_freeze_panes_top_cell(&self, row: xlsx::RowNum, col: xlsx::ColNum,) -> WasmResult<Worksheet> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
|
I forgot to mention, could you add a test for both methods? |
|
Oh, forgot to add test for setFreezePanesTopCell |
|
The trailing commas seems to be added automatically by |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your swift response!
Fixes #19