mirror of
https://github.com/django-components/django-components.git
synced 2025-09-27 07:59:08 +00:00
Update documentation to recommend simplified style.
This commit is contained in:
parent
97777d3318
commit
f60403f41e
1 changed files with 2 additions and 2 deletions
|
@ -161,8 +161,8 @@ class Calendar(component.Component):
|
||||||
return "[your app]/components/calendar/calendar.html"
|
return "[your app]/components/calendar/calendar.html"
|
||||||
|
|
||||||
class Media:
|
class Media:
|
||||||
css = {'all': ['[your app]/components/calendar/calendar.css']}
|
css = '[your app]/components/calendar/calendar.css'
|
||||||
js = ['[your app]/components/calendar/calendar.js']
|
js = '[your app]/components/calendar/calendar.js'
|
||||||
```
|
```
|
||||||
|
|
||||||
And voilá!! We've created our first component.
|
And voilá!! We've created our first component.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue