SharePoint 2010模式对话框扩展
2012-07-06 15:18
281 查看
主要用于SharePoint 2010模式对话框最大化、恢复默认状态、切换状态(如果是最大化,则切换到正常状态,反之……)、设置模式对话框大小。
扩展JS:
ExecuteOrDelayUntilScriptLoaded(function () {
SP.UI.ModalDialog.prototype.toggleView = function () {
this.$z(null);
};
SP.UI.ModalDialog.prototype.maximize = function () {
if (!this.$S_0) {
this.$z(null);
}
}
SP.UI.ModalDialog.prototype.restore = function () {
if (this.$S_0) {
this.$z(null);
}
}
SP.UI.ModalDialog.prototype.setSize = function (width, height) {
if (typeof width == "number" && typeof height == "number") {
this.$Q_0(width, height);
}
}
}, "sp.ui.dialog.js");
调用方法:
var dlg = SP.UI.ModalDialog.get_childDialog();
dlg.toggleView();
本文出自 “SharePoint-Tech” 博客,请务必保留此出处http://mosstech.blog.51cto.com/3506754/922228
扩展JS:
ExecuteOrDelayUntilScriptLoaded(function () {
SP.UI.ModalDialog.prototype.toggleView = function () {
this.$z(null);
};
SP.UI.ModalDialog.prototype.maximize = function () {
if (!this.$S_0) {
this.$z(null);
}
}
SP.UI.ModalDialog.prototype.restore = function () {
if (this.$S_0) {
this.$z(null);
}
}
SP.UI.ModalDialog.prototype.setSize = function (width, height) {
if (typeof width == "number" && typeof height == "number") {
this.$Q_0(width, height);
}
}
}, "sp.ui.dialog.js");
调用方法:
var dlg = SP.UI.ModalDialog.get_childDialog();
dlg.toggleView();
本文出自 “SharePoint-Tech” 博客,请务必保留此出处http://mosstech.blog.51cto.com/3506754/922228
相关文章推荐
- 从 InfoPath 2010 表单打开 SharePoint 2010 模式对话框
- 使用SharePoint 2010 对话框模式
- 使用SharePoint 2010模式对话框
- 使用SharePoint 2010模式对话框
- 使用SharePoint 2010模式对话框
- SharePoint 2010中的客户端AJAX应用——对话框显示详细信息页
- SharePoint 2010 中创建超链接到Pop-Up对话框
- sharepoint 2010 弹出模式窗口showModalDialog并返回值returnResult方法
- 如何关闭烦人的"Unspecified Security Risk“对话框在SharePoint 2010 Asset Library
- sharepoint 2010 扩展调查字段属性(1)-增加图片支持
- sharepoint 2010 扩展富文本框上传图片功能extend InputFormTextBox for uploading image
- SharePoint 2010 在WebPart页面上调用扩展方法报方法未定义的解决方案
- 【解决】SharePoint 2010 - ASP.NET 的会话状态已禁用。报表查看器控件要求在本地模式下启用会话状态
- SharePoint 2010中开发模式的改进 COM - 客户端对象模型
- SharePoint 2010 中创建超链接到Pop-Up对话框
- Sharepoint 2010弹出对话框
- SharePoint 2010 中创建超链接到Pop-Up对话框
- SharePoint 2010 使用SP.UI.ModalDialog.showModalDialog(options)对话框框架传值
- SharePoint 2010 Pop-Up Dialogs SharePoint 2010 弹出对话框
- [SharePoint 2010]关于基于声明(Claims)的用户认证模式