浏览代码

update viselements.json

Toan Quach 1 年之前
父节点
当前提交
e7bd8bf271
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 1 1
      taipy/gui_core/_context.py
  2. 3 3
      taipy/gui_core/viselements.json

+ 1 - 1
taipy/gui_core/_context.py

@@ -178,7 +178,7 @@ class _GuiCoreContext(CoreEventConsumerBase):
                                     core_get(submission.id),
                                     {
                                         "submission_status": new_status.name,
-                                        "submittable_entity_id": core_get(submission.entity_id),
+                                        "submittable_entity": core_get(submission.entity_id),
                                         **(event.metadata if event else {}),
                                     },
                                 ],

+ 3 - 3
taipy/gui_core/viselements.json

@@ -194,15 +194,15 @@
                     {
                         "name": "on_submission_change",
                         "type": "Callback",
-                        "doc": "The name of the function that is triggered when a submission status is changed.<br/><br/>All the parameters of that function are optional:\n<ul>\n<li>state (<code>State^</code>): the state instance.</li>\n<li>submittable (Submittable): the entity (usually a Scenario) that was submitted.</li>\n<li>details (dict): the details on this callback's invocation.<br/>\nThis dictionary has the following keys:\n<ul>\n<li>submission_status (str): the new status of the submission (possible values: SUBMITTED, COMPLETED, CANCELED, FAILED, BLOCKED, WAITING, RUNNING).</li>\n<li>job: the Job (if any) that is at the origin of the submission status change.</li>\n</ul>",
+                        "doc": "The name of the function that is triggered when a submission status is changed.<br/><br/>All the parameters of that function are optional:\n<ul>\n<li>state (<code>State^</code>): the state instance.</li>\n<li>submission (Submission): the submission entity containing submission information.</li>\n<li>details (dict): the details on this callback's invocation.<br/>\nThis dictionary has the following keys:\n<ul>\n<li>submission_status (str): the new status of the submission (possible values: SUBMITTED, COMPLETED, CANCELED, FAILED, BLOCKED, WAITING, RUNNING).</li>\n<li>job: the Job (if any) that is at the origin of the submission status change.</li>\n<li>submittable_entity: submittable (Submittable): the entity (usually a Scenario) that was submitted.</li>\n</ul>",
                         "signature": [
                             [
                                 "state",
                                 "State"
                             ],
                             [
-                                "submittable",
-                                "Submittable"
+                                "submission",
+                                "Submission"
                             ],
                             [
                                 "details",