Closed FlorianJacta closed 2 months ago
Hey @FlorianJacta, I would like to work on this issue, could you please assign it to me?
Also, could you please elaborate a bit on using 'dialog as a block'. I've understood this partially, but I'm not able to completely understand that what exactly is the problem?
As far as I've understood according to taipy docs, the on_action
property return -1, 0, 1 or for closing, validating, cancelling respectively, am I right?
@yaten2302 I have updated the issue. The problem is that you cannot use it inside the context manager. I will show you the Markdown syntax and the Python API.
Markdown syntax that works:
page = """
<|dialog|open={open_modal}|
Hello
|>
"""
Here, it is not working with a with
.
with tgb.Page() as page:
with tgb.dialog(open="{open_modal}"):
tgb.text("Hello")
We will maybe put this issue in Staff Only.
I'll try to work on some other issues, if this one is Staff Only 👍
The problem here is that dialog is a control and a block
What went wrong? 🤔
It is not possible to use the dialog as a block.
Expected Behavior
We should be able to use the syntax below because
dialog()
is not a Context Manager.Steps to Reproduce Issue
Version of Taipy
develop - 6/10/24 (M/D/Y)
Code of Conduct