Skip to content

Components

hypha.core.components

AdminBar

Bases: Component

template_name class-attribute instance-attribute

template_name = 'components/admin_bar.html'

ModalTitle

Bases: Component

template_name class-attribute instance-attribute

template_name = 'components/modal-title.html'

DropdownMenu

Bases: Component

template_name class-attribute instance-attribute

template_name = 'components/dropdown-menu.html'

get_context_data

get_context_data(**kwargs)
Source code in hypha/core/components.py
def get_context_data(self, **kwargs) -> dict:
    return {"id": str(uuid.uuid4())}

ScrollToTop

Bases: Component

template_name class-attribute instance-attribute

template_name = 'components/scroll-to-top.html'