mirror of
https://github.com/django-components/django-components.git
synced 2025-08-09 16:57:59 +00:00
docs: Split README (#775)
This commit is contained in:
parent
f1a351f7f4
commit
4d5fecf3ee
36 changed files with 4118 additions and 11 deletions
|
@ -139,6 +139,16 @@ class ComponentVars(NamedTuple):
|
|||
</div>
|
||||
{% endif %}
|
||||
```
|
||||
|
||||
This is equivalent to checking if a given key is among the slot fills:
|
||||
|
||||
```py
|
||||
class MyTable(Component):
|
||||
def get_context_data(self, *args, **kwargs):
|
||||
return {
|
||||
"my_slot_filled": "my_slot" in self.input.slots
|
||||
}
|
||||
```
|
||||
"""
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue