mirror of
https://github.com/django-components/django-components.git
synced 2025-08-08 08:17:59 +00:00
feat: extension defaults + docs + API cleanup (#1215)
This commit is contained in:
parent
7df8019544
commit
bb129aefab
16 changed files with 858 additions and 144 deletions
|
@ -56,6 +56,7 @@ from django_components.extension import (
|
|||
extensions,
|
||||
)
|
||||
from django_components.extensions.cache import ComponentCache
|
||||
from django_components.extensions.debug_highlight import ComponentDebugHighlight
|
||||
from django_components.extensions.defaults import ComponentDefaults
|
||||
from django_components.extensions.view import ComponentView, ViewFn
|
||||
from django_components.node import BaseNode
|
||||
|
@ -1727,6 +1728,13 @@ class Component(metaclass=ComponentMeta):
|
|||
"""
|
||||
Instance of [`ComponentView`](../api#django_components.ComponentView) available at component render time.
|
||||
"""
|
||||
DebugHighlight: ClassVar[Type[ComponentDebugHighlight]]
|
||||
"""
|
||||
The fields of this class are used to configure the component debug highlighting.
|
||||
|
||||
Read more about [Component debug highlighting](../../guides/other/troubleshooting#component-and-slot-highlighting).
|
||||
"""
|
||||
debug_highlight: ComponentDebugHighlight
|
||||
|
||||
# #####################################
|
||||
# MISC
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue