basic dialog basic question - Ext JS

本文探讨了在ExtJS中如何为多个按钮设置点击事件,以调用同一个基本对话框并传递不同参数的方法。作者遇到了如何通过按钮调用showDialog函数并正确传递参数的问题,并希望了解如何根据不同参数改变对话框的内容。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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
Reply With Quote
  #2  
Old 03-13-2007, 01:58 PM
Default

Create a function that takes in those parameters and then creates/shows the dialog with the appropriate content.
Reply With Quote
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值