mirror of
https://github.com/django-components/django-components.git
synced 2025-08-09 08:48:00 +00:00
docs: Split README (#800)
* docs: Split README (#775) (#785) * docs: add script to generate API reference from the source code (#788) * refactor: test docs build, fix docs build flow * refactor: update requirements * refactor: rename changelog to release notes in docs
This commit is contained in:
parent
ce3305a5ff
commit
4c2cb2f2c4
56 changed files with 5093 additions and 49 deletions
|
@ -140,6 +140,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