[x] It's submitted to the dev branch (or v[X] branch)
[x] When resolving a specific issue, it's referenced in the PR's title (e.g. fix: #xxx[,#xxx], where "xxx" is the issue number)
[ ] It's been tested on a Cordova (iOS, Android) app
[ ] It's been tested on an Electron app
[x] Any necessary documentation has been added or updated in the docs or explained in the PR's description.
If adding a new feature, the PR's description includes:
[ ] A convincing reason for adding this feature (to avoid wasting your time, it's best to start a new feature discussion first and wait for approval before working on it)
Other information:Title: Add notHide Option to props.ok to Control Dialog Closure on Button Click
Summary:
Introduce a new notHide option within props.ok to allow control over dialog visibility when the OK button is clicked. This feature will be particularly useful for scenarios where the dialog should remain open until an asynchronous task completes.
Description:
Currently, the dialog closes immediately when the OK button is clicked. However, for certain operations, like asynchronous tasks, it may be necessary to keep the dialog open until the operation is fully completed. Implementing a notHide property will provide developers with the flexibility to prevent the dialog from closing right away.
Proposed Solution:
Add a notHide boolean property to props.ok.
When notHide is set to true, the dialog will not close upon clicking the OK button.
The dialog closure can be manually triggered later, typically after the completion of an asynchronous operation.
Example Use Case:
Consider a form submission within a dialog where data validation and server-side processing are required. With the notHide option set to true, the dialog remains open, displaying a loading indicator while the submission is processed. Once the server responds, the dialog can be programmatically closed, either on success or after displaying an error message.
17120
What kind of change does this PR introduce?
Does this PR introduce a breaking change?
The PR fulfills these requirements:
dev
branch (orv[X]
branch)fix: #xxx[,#xxx]
, where "xxx" is the issue number)If adding a new feature, the PR's description includes:
Other information: Title: Add
notHide
Option toprops.ok
to Control Dialog Closure on Button ClickSummary: Introduce a new
notHide
option withinprops.ok
to allow control over dialog visibility when the OK button is clicked. This feature will be particularly useful for scenarios where the dialog should remain open until an asynchronous task completes.Description: Currently, the dialog closes immediately when the OK button is clicked. However, for certain operations, like asynchronous tasks, it may be necessary to keep the dialog open until the operation is fully completed. Implementing a
notHide
property will provide developers with the flexibility to prevent the dialog from closing right away.Proposed Solution:
notHide
boolean property toprops.ok
.notHide
is set totrue
, the dialog will not close upon clicking the OK button.Example Use Case: Consider a form submission within a dialog where data validation and server-side processing are required. With the
notHide
option set totrue
, the dialog remains open, displaying a loading indicator while the submission is processed. Once the server responds, the dialog can be programmatically closed, either on success or after displaying an error message.