(
self,
text: str,
style: Optional[str] = None,
sticky: bool = True,
**kwargs: TypeJsonValue,
)
| 625 | ) |
| 626 | |
| 627 | def __init__( |
| 628 | self, |
| 629 | text: str, |
| 630 | style: Optional[str] = None, |
| 631 | sticky: bool = True, |
| 632 | **kwargs: TypeJsonValue, |
| 633 | ): |
| 634 | super().__init__() |
| 635 | self._name = "Tooltip" |
| 636 | |
| 637 | self.text = str(text) |
| 638 | |
| 639 | kwargs.update({"sticky": sticky}) |
| 640 | self.options = remove_empty(**kwargs) |
| 641 | |
| 642 | if style: |
| 643 | assert isinstance( |
| 644 | style, str |
| 645 | ), "Pass a valid inline HTML style property string to style." |
| 646 | # noqa outside of type checking. |
| 647 | self.style = style |
| 648 | |
| 649 | |
| 650 | class FitBounds(MacroElement): |
nothing calls this directly
no test coverage detected