Skip to content

Commit

Permalink
Merge pull request #1252 from Avaiga/gui_tutorial_part
Browse files Browse the repository at this point in the history
Recovers necessary part
  • Loading branch information
AlexandreSajus authored Jan 10, 2025
2 parents db6ad38 + d0a8c00 commit e6de536
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions docs/tutorials/articles/sales_dashboard/step_02/step_02.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,11 @@ We can now add [date selectors](../../../../refmans/gui/viselements/generic/date
```python
with tgb.part(class_name="card"):
with tgb.layout(columns="1 2 1"):
# First Column
with tgb.part():
tgb.text("Filter **From**", mode="md")
tgb.date("{start_date}")
tgb.text("To")
tgb.date("{end_date}")
# Second Column
with tgb.part():
tgb.text("Filter Product **Category**", mode="md")
tgb.selector(
Expand All @@ -119,12 +117,12 @@ We can now add [date selectors](../../../../refmans/gui/viselements/generic/date
lov="{subcategories}",
dropdown=True,
)
# Third Column
tgb.button(
"Apply",
class_name="plain apply_button",
on_action=apply_changes,
)
with tgb.part(class_name="text-center"):
tgb.button(
"Apply",
class_name="plain apply_button",
on_action=apply_changes,
)
```
=== "Markdown"
```
Expand Down

0 comments on commit e6de536

Please sign in to comment.