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

class Button (text, **kwargs)

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

Subclasses

Methods

def render(self)
Expand source code
def render(self) -> Any:
    raise NotImplementedError()