Ext.net v2.2 .Net Framework v4.5
我的直接方法
[DirectMethod]
public static Panel AddTab(int postId)
{
var pnlEditPost = new Panel
{
ID = postId.ToString(),
Icon = Icon.BookEdit,
Title = "Edit",
Layout = "Fit",
Closable = true,
AutoDoLayout = true
};
return pnlEditPost;
}
我需要在 javascript 中获取 pnlEditPost 并将其添加到我的 TabPanel