Skip to content

Commit

Permalink
Correct links for 'Release Notes' and 'Contributing' in nav bar
Browse files Browse the repository at this point in the history
- Minor fixes
  • Loading branch information
FabienLelaquais authored Oct 15, 2024
1 parent 82e0ff9 commit 892839e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ An `on_change` callback can be set to retrieve the user's selection:
def on_change(s: State, name: str, value: any):
if name == "dates":
# value[0] is set to the first selected date
# value[1] is set to the first selected date
# value[1] is set to the second selected date
```

## Selecting a range with times {data-source="gui:doc/examples/controls/date_range_with_time.py"}
Expand Down
17 changes: 9 additions & 8 deletions docs/refmans/gui/viselements/generic/dialog.md_template
Original file line number Diff line number Diff line change
Expand Up @@ -155,16 +155,17 @@ This definition indicates that:
Here’s how you can implement the *dialog_action()* function to handle the button presses:
```python
def dialog_action(state, _, payload):
if payload["args"][0] == 0:
... # The first button was pressed
elif payload["args"][0] == 1: # Second button
... # The second button was pressed
else: # Close button (index == -1)
... # The dialog's Close button was pressed
if payload["args"][0] == 0: # The first button was pressed
...
elif payload["args"][0] == 1: # The second button was pressed
...
else: # The dialog's Close button was pressed (index == -1)
...
state.show_dialog = False
```

The *payload["args"]\[0\]* value indicates which button was pressed:

- 0: The first button ("Couldn't be better") was pressed.
- 1: The second button ("Not my day") was pressed.
- -1: The Close button of the dialog was pressed.
Expand All @@ -178,8 +179,8 @@ When *show_dialog* is set to True, the dialog will display two buttons at the bo
<figcaption>Automatic buttons</figcaption>
</figure>

If the user presses the first button, "COULDN'T BE BETTER", the *dialog_action()* callback will be
invoked with *payload["args"]\[0\]* set to 0.
If the user presses the first button, "COULDN'T BE BETTER", the *dialog_action()* callback function
is invoked with *payload["args"]\[0\]* set to 0.

## Dialog with page

Expand Down
4 changes: 2 additions & 2 deletions taipy_theme/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,12 @@
<div class="md-grid">
<ul class="md-tabs__list">
<li class="md-tabs__item">
<a href="{{ config.site_url }}release-notes/" class="md-tabs__link">
<a href="http://TAIPY_DOCS_URL/release-notes/" class="md-tabs__link">
Release Notes
</a>
</li>
<li class="md-tabs__item">
<a href="{{ config.site_url }}contributing/" class="md-tabs__link">
<a href="http://TAIPY_DOCS_URL/contributing/" class="md-tabs__link">
Contributing
</a>
</li>
Expand Down

0 comments on commit 892839e

Please sign in to comment.