Hi
I am starting to use ext 1 alpha. I have multiple buttons which will be calling one basic dialog with parameters.
<input type=button id="ss_1" onclick="showDialog(1,2)" value=Play>
<input type=button id="ss_2" onclick="showDialog(2,2)" value=Play>
<input type=button id="ss_3" onclick="showDialog(3,2)" value=Play>
<input type=button id="ss_4" onclick="showDialog(4,2)" value=Play> and so on...
I have no idea how to do that. I couldn't figure out how to pass those parameters to showdialog function in samples. All samples are demonstrated without passing params, I think.
Also, dialog's contents will be changing depends on parameters, so I think I need to use updatemanager object inside dialog.
Please adivse
I am starting to use ext 1 alpha. I have multiple buttons which will be calling one basic dialog with parameters.
<input type=button id="ss_1" onclick="showDialog(1,2)" value=Play>
<input type=button id="ss_2" onclick="showDialog(2,2)" value=Play>
<input type=button id="ss_3" onclick="showDialog(3,2)" value=Play>
<input type=button id="ss_4" onclick="showDialog(4,2)" value=Play> and so on...
I have no idea how to do that. I couldn't figure out how to pass those parameters to showdialog function in samples. All samples are demonstrated without passing params, I think.
Also, dialog's contents will be changing depends on parameters, so I think I need to use updatemanager object inside dialog.
Please adivse

#2
![]() |
![]() Create a function that takes in those parameters and then creates/shows the dialog with the appropriate content.
![]() |