File tree 2 files changed +11
-9
lines changed
2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -825,11 +825,12 @@ def set_tooltips(self, ttips: DataFrame):
825
825
Notes
826
826
-----
827
827
Tooltips are created by adding `<span class="pd-t"></span>` to each data cell
828
- and then manipulating the table level CSS to attach pseudo hover and pseudo after
829
- selectors to produce the required the results. For styling control
828
+ and then manipulating the table level CSS to attach pseudo hover and pseudo
829
+ after selectors to produce the required the results. For styling control
830
830
see `:meth:Styler.set_tooltips_class`.
831
- Tooltips are not designed to be efficient, and can add large amounts of additional
832
- HTML for larger tables, since they also require that `cell_ids` is forced to `True`.
831
+ Tooltips are not designed to be efficient, and can add large amounts of
832
+ additional HTML for larger tables, since they also require that `cell_ids`
833
+ is forced to `True`.
833
834
834
835
:param ttips:
835
836
:return:
@@ -876,7 +877,8 @@ def set_tooltips(self, ttips: DataFrame):
876
877
877
878
def set_tooltip_class (self , name = "pd-t" , properties = None ):
878
879
"""
879
- Method to set the name and properties of the class for creating tooltips on hover.
880
+ Method to set the name and properties of the class for creating tooltips on
881
+ hover.
880
882
881
883
Parameters
882
884
----------
Original file line number Diff line number Diff line change @@ -1699,14 +1699,14 @@ def test_tooltip_render(self):
1699
1699
assert "#T__ .pd-t {" in s .render ()
1700
1700
# test 'min' tooltip added
1701
1701
assert (
1702
- "#T__ #T__row0_col0:hover .pd-t {\n visibility: visible;\n } "
1703
- + '#T__ #T__row0_col0 .pd-t::after {\n content: "Min";\n }'
1702
+ "#T__ #T__row0_col0:hover .pd-t {\n visibility: visible;\n } "
1703
+ + ' #T__ #T__row0_col0 .pd-t::after {\n content: "Min";\n }'
1704
1704
in s .render ()
1705
1705
)
1706
1706
# test 'max' tooltip added
1707
1707
assert (
1708
- "#T__ #T__row1_col1:hover .pd-t {\n visibility: visible;\n } "
1709
- + '#T__ #T__row1_col1 .pd-t::after {\n content: "Max";\n }'
1708
+ "#T__ #T__row1_col1:hover .pd-t {\n visibility: visible;\n } "
1709
+ + ' #T__ #T__row1_col1 .pd-t::after {\n content: "Max";\n }'
1710
1710
in s .render ()
1711
1711
)
1712
1712
You can’t perform that action at this time.
0 commit comments