Module pandas_profiling.report.presentation.core.button
Expand source code
from typing import Any
from pandas_profiling.report.presentation.abstract.item_renderer import ItemRenderer
class Button(ItemRenderer):
def __init__(self, text, **kwargs):
super().__init__("button", {"text": text}, **kwargs)
def __repr__(self):
return "Button"
def render(self) -> Any:
raise NotImplementedError()
Classes
-
Helper class that provides a standard way to create an ABC using inheritance.
Expand source code
class Button(ItemRenderer): def __init__(self, text, **kwargs): super().__init__("button", {"text": text}, **kwargs) def __repr__(self): return "Button" def render(self) -> Any: raise NotImplementedError()
Ancestors
- ItemRenderer
- Renderable
- abc.ABC
Subclasses
Methods
-
Expand source code
def render(self) -> Any: raise NotImplementedError()