コードボックスに確認ボックスを作成しようとしています。確認機能は、私はエラーが表示されるダイアログで「はい」ボタンをクリックすると、正しく呼び出されている間:C#EXT App.direct.fnameが関数ではありません
Uncaught TypeError: App.direct.DoYes is not a function
public void Confirmation(object sender, DirectEventArgs e)
{
X.Msg.Confirm("Confirm", "Do you want to create test for this selection:", new MessageBoxButtonsConfig
{
Yes = new MessageBoxButtonConfig
{
Handler = "App.direct.DoYes()",
Text = "Yes"
},
No = new MessageBoxButtonConfig
{
Handler = "wndRnd.Close()",
Text = "No"
}
}).Show();
}
[DirectMethod]
public void DoYes()
{
//do something
}