Apr 16, 2011, 7:09 AM
[CLOSED] MessageBoxConfig - add extra parameters in MultiLine alert/messageBox
Hey!
I want to add a parameter to the call in a MessageBox. Instead of just doing this (as can be seen here):
I want to add a parameter to the call in a MessageBox. Instead of just doing this (as can be seen here):
X.Msg.Show(new MessageBoxConfig
{
Title = "Do the thing?",
Message = "Some nice instructions.",
Width = 300,
Buttons = MessageBox.Button.OKCANCEL,
Multiline = true,
Fn = new JFunction { Fn = "confirmResult" }
});
I want to add a paramter, and I suspect I need to use Handler instead of Fn??X.Msg.Show(new MessageBoxConfig
{
Title = "Do the thing?",
Message = "Some nice instructions.",
Width = 300,
Buttons = MessageBox.Button.OKCANCEL,
Multiline = true,
Fn = new JFunction { Handler="confirmResult(" + b.Id + ", btn, text)" }
});
However, I get that "btn" is not defined. How can I do this? =) thx!
Last edited by Daniil; Apr 21, 2011 at 8:01 AM.
Reason: [CLOSED]