zoukankan      html  css  js  c++  java
  • SharePoint 2013 对话框

    The quick way to open a sharepoint 2013 dialog modal form is via Javascript below

    1
    2
    3
    4
    5
    function OpenPopUpPage(url, callback, width, height)
     
    function OpenPopUpPageWithTitle(url, callback, width, height, title)
     
    function OpenPopUpPageWithDialogOptions(dialogOptions)

    The dialogOptions supports the following

    Options PropertyDescription
    title A string that contains the title of the dialog.
    url A string that contains the URL of the page that appears in the dialog. If both url and html are specified, url takes precedence. Either url or html must be specified.
    html An Element (such as DIV)  A string that contains the HTML of the page that appears in the dialog. If both html and url are specified, url takes precedence. Either url or html must be specified.
    x An integer value that specifies the x-offset of the dialog. This value works like the CSS left value.
    y An integer value that specifies the y-offset of the dialog. This value works like the CSS top value.
    width An integer value that specifies the width of the dialog. If width is not specified, the width of the dialog is autosized by default. If autosize is false, the width of the dialog is set to 768 pixels.
    height An integer value that specifies the height of the dialog. If height is not specified, the height of the dialog is autosized by default. If autosize is false, the dialog height is set to 576 pixels.
    allowMaximize A Boolean value that specifies whether the dialog can be maximized. true if the Maximize button is shown; otherwise, false.
    showMaximized A Boolean value that specifies whether the dialog opens in a maximized state. true the dialog opens maximized. Otherwise, the dialog is opened at the requested sized if specified; otherwise, the default size, if specified; otherwise, the autosized size.
    showClose A Boolean value that specifies whether the Close button appears on the dialog.
    autoSize A Boolean value that specifies whether the dialog platform handles dialog sizing.
    dialogReturnValueCallback A function pointer that specifies the return callback function. The function takes two parameters, a dialogResult of type SP.UI.DialogResult Enumeration and a returnValue of type object that contains any data returned by the dialog.
    args An object that contains data that are passed to the dialog.

    This is with assumption that the following SharePoint JS file are loaded:

    1. SP.Core.js
    2. SP.UI.Dialog.js
    Hence,  you can always add this js to your custom app to do the call out!
     
    参考:http://wp.ahcheng.com/2013/04/09/calling-dialog-modal-form-in-sharepoint-2013/
  • 相关阅读:
    用Java求两个字符串所有的公共子序列
    Windows系统上安装logstash和logstash-input-jdbc
    Linux下zip文件的压缩和解压命令
    Linux-root用户下新建用户及为新用户配置密码
    Linux下查看是否安装jdk的命令
    使用git clone命令报错:error: RPC failed; curl 18 transfer closed with outstanding read data remaining
    SCP not a regular file
    常用正则表达式
    Android Wear 兼容
    git diff 配置 meld diff
  • 原文地址:https://www.cnblogs.com/wengnet/p/4786252.html
Copyright © 2011-2022 走看看