mirror of
https://github.com/django-components/django-components.git
synced 2025-08-31 03:07:19 +00:00
refactor: Assign content of file from Component.template_file to Component.template (#880)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
8e2428ebd0
commit
1e4b556b4d
12 changed files with 399 additions and 186 deletions
|
@ -339,7 +339,7 @@ these file paths will be resolved only once you either:
|
|||
|
||||
1. Access any of the following attributes on the component:
|
||||
|
||||
- [`media`](../../reference/api.md#django_components.Component.media),
|
||||
- [`media`](../../reference/api.md#django_components.Component.media),
|
||||
[`template`](../../reference/api.md#django_components.Component.template),
|
||||
[`template_file`](../../reference/api.md#django_components.Component.template_file),
|
||||
[`js`](../../reference/api.md#django_components.Component.js),
|
||||
|
@ -398,7 +398,7 @@ print(Calendar.css)
|
|||
If you need to dynamically change these media files, consider instead defining multiple Components.
|
||||
|
||||
Modifying these files AFTER the component has been loaded at best does nothing. However, this is
|
||||
an untested behavior.
|
||||
an untested behavior, which may lead to unexpected errors.
|
||||
|
||||
## Accessing component's Media files
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue