2

如何在 Awesome Popup Form Action 中隐藏 Ok 按钮

这是我的代码:

@{
    var DetailFormat = string.Format("<button type='button' class='awe-btn' onclick=\"{0}\"><span class='ico-edit'></span></button>",
        Url.Awe().PopupFormAction().Title("Détail article").CancelText("Fermer").Height(500)
            .Url(Url.Action("Details", new { Id = ".Id" })));
}

我想在标题为“详细信息”的 PopupForm 中隐藏“确定”按钮

4

2 回答 2

1

使用.hide()

$('.awe-btn').hide();

事实上,you have to mention your situation or scenario你想在哪里以及如何隐藏它。

更新:

$('.awe-btn[title="Détail"]').hide();
于 2013-02-02T13:04:48.410 回答
1

在最新版本(3.5)中,您可以调用

.ShowDefaultButtons(false)

这在向导演示中使用http://demo.aspnetawesome.com/WizardDemo

并在调用.Button后添加您需要的任何按钮

于 2013-09-26T23:36:34.687 回答