-
-
Notifications
You must be signed in to change notification settings - Fork 321
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reorganize creating-interfaces + add info on fragments (#685)
- Loading branch information
Showing
17 changed files
with
102 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
13 changes: 13 additions & 0 deletions
13
docs/source/creating-interfaces/your-first-components/_examples/wrap_in_div.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from idom import component, html, run | ||
|
||
|
||
@component | ||
def MyTodoList(): | ||
return html.div( | ||
html.h1("My Todo List"), | ||
html.img({"src": "https://picsum.photos/id/0/500/300"}), | ||
html.ul(html.li("The first thing I need to do is...")), | ||
) | ||
|
||
|
||
run(MyTodoList) |
13 changes: 13 additions & 0 deletions
13
docs/source/creating-interfaces/your-first-components/_examples/wrap_in_fragment.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from idom import component, html, run | ||
|
||
|
||
@component | ||
def MyTodoList(): | ||
return html._( | ||
html.h1("My Todo List"), | ||
html.img({"src": "https://picsum.photos/id/0/500/200"}), | ||
html.ul(html.li("The first thing I need to do is...")), | ||
) | ||
|
||
|
||
run(MyTodoList) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters