You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#### Changed:
- Option `user_can_create_notes` now overrides cells made `readonly` but not notes created by the `note()` function that are readonly.
#### Added:
- Option `tooltip_hover_delay` to control how long the mouse cursor must stay still before a tooltip appears.
#### Improved:
- If tooltips/notes are being used hovering over any area of a cell will now make them appear rather than just the cells text.
- A cell edit will now only occur when using tooltips if the tooltip editor's content changed.
#### Fixed:
- Tooltip wrongly opens while cell text editor is open.
- Removed leftover debugging `print()` call from treeview move function.
@@ -4572,7 +4574,7 @@ <h4 id="replace-all-using-mapping"><strong>Replace all using mapping</strong></h
4572
4574
</ul>
4573
4575
<hr/>
4574
4576
<h1id="notes-and-tooltips"><strong>Notes and tooltips</strong></h1>
4575
-
<p>When using either notes or tooltips a popup can be made to appear for associated cells when the mouse cursor <strong>remains still over a cell's text</strong> for 1sec.</p>
4577
+
<p>When using either notes or tooltips a popup can be made to appear for associated cells when the mouse cursor remains still over a cell.</p>
4576
4578
<p>Tooltips and notes are two different things but both produce the same popup, if using both cell notes and tooltips then the popup with have clickable tabs.</p>
<li>Use <code>readonly</code><code>False</code> to allow the user to edit the existing notes.</li>
4620
4629
<li><code>readonly</code> is <code>True</code> by default.</li>
4621
4630
</ul>
4622
-
<p>You can also allow the user to create new notes and delete notes using the setting <code>user_can_create_notes</code> e.g. <code>sheet.set_options(user_can_create_notes=True)</code>.</p>
4631
+
<p>You can also allow the user to create new notes and delete notes using the setting <code>user_can_create_notes</code> e.g. <code>sheet.set_options(user_can_create_notes=True)</code>. This allows the user to create and modify notes. This also allows note editing even in cells that have been made <code>readonly</code> in the non-note sense.</p>
4623
4632
<p>If an existing note was created using the <code>note()</code> function or <code>Span.note()</code> function and <code>readonly</code> was set to <code>True</code> then the user will not be able to edit or delete that note even if <code>user_can_create_notes</code> is <code>True</code>.</p>
4624
4633
<p>Examples:</p>
4625
4634
<p><strong>Note for header cell in column <code>A</code>/<code>0</code>:</strong></p>
Copy file name to clipboardExpand all lines: docs/DOCUMENTATION.md
+9-2Lines changed: 9 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -360,6 +360,7 @@ def __init__(
360
360
note_corners: bool = False,
361
361
tooltip_width: int = 210,
362
362
tooltip_height: int = 210,
363
+
tooltip_hover_delay: int = 1200,
363
364
# colors
364
365
outline_thickness: int = 0,
365
366
theme: str = "light blue",
@@ -1084,6 +1085,7 @@ else ["<Home>"],
1084
1085
"note_corners": False,
1085
1086
"tooltip_width": int = 210,
1086
1087
"tooltip_height": int = 210,
1088
+
"tooltip_hover_delay": int = 1200,
1087
1089
```
1088
1090
1089
1091
Notes:
@@ -4212,7 +4214,7 @@ Notes:
4212
4214
---
4213
4215
# **Notes and tooltips**
4214
4216
4215
-
When using either notes or tooltips a popup can be made to appear for associated cells when the mouse cursor **remains still over a cell's text** for 1sec.
4217
+
When using either notes or tooltips a popup can be made to appear for associated cells when the mouse cursor remains still over a cell.
4216
4218
4217
4219
Tooltips and notes are two different things but both produce the same popup, if using both cell notes and tooltips then the popup with have clickable tabs.
4218
4220
@@ -4224,9 +4226,14 @@ Cell tooltips show the cell's value, they are:
4224
4226
- A global setting and not for individual cells like `note`s are.
4225
4227
- Editable if the cell itself is editable - if the cell is readonly then the `Cell` tooltip should be also.
4226
4228
- Saved when the mouse leaves the tooltip popup.
4229
+
4230
+
You can:
4231
+
4227
4232
- Change the width and height of tooltip & note popups using the settings:
- Use `readonly` `False` to allow the user to edit the existing notes.
4272
4279
- `readonly` is `True` by default.
4273
4280
4274
-
You can also allow the user to create new notes and delete notes using the setting `user_can_create_notes` e.g. `sheet.set_options(user_can_create_notes=True)`.
4281
+
You can also allow the user to create new notes and delete notes using the setting `user_can_create_notes` e.g. `sheet.set_options(user_can_create_notes=True)`. This allows the user to create and modify notes. This also allows note editing even in cells that have been made `readonly` in the non-note sense.
4275
4282
4276
4283
If an existing note was created using the `note()` function or `Span.note()` function and `readonly` was set to `True` then the user will not be able to edit or delete that note even if `user_can_create_notes` is `True`.
0 commit comments