You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I handle several dialogs at the same time and I wish to access to the dialogs collection.
My need are:
1 - define the id of a modal dialog
I found a way to do this with dialogInstance.setId() method
=> Could I introduce a problem here ?
2 - direct access to dialogInstance with a native function
for example: BootstrapDialog.getDialog( id )
=> I miss this feature
3 - browser the dialog collection with a native function
=> I think there is a function returning an array in the source code but I could not find how to call it.
For now, I could find an anwser by using this code:
$.each(BootstrapDialog.dialogs, function(id, dialogInstance)
{
if (dialogInstance.isRealized() && dialogInstance.isOpened() && dialogInstance.getId() == 'WHATEVER I AM LOOKING FOR' )
{
//do something with dialogInstance variable:
my_function( dialogInstance);
}
});
Thank you for your help
The text was updated successfully, but these errors were encountered:
Hello,
I handle several dialogs at the same time and I wish to access to the dialogs collection.
My need are:
1 - define the id of a modal dialog
I found a way to do this with dialogInstance.setId() method
=> Could I introduce a problem here ?
2 - direct access to dialogInstance with a native function
for example: BootstrapDialog.getDialog( id )
=> I miss this feature
3 - browser the dialog collection with a native function
=> I think there is a function returning an array in the source code but I could not find how to call it.
For now, I could find an anwser by using this code:
$.each(BootstrapDialog.dialogs, function(id, dialogInstance)
{
if (dialogInstance.isRealized() && dialogInstance.isOpened() && dialogInstance.getId() == 'WHATEVER I AM LOOKING FOR' )
{
//do something with dialogInstance variable:
my_function( dialogInstance);
}
});
Thank you for your help
The text was updated successfully, but these errors were encountered: