SharePoint 2013 dialog box

Source: Internet
Author: User

The quick-to-Open a SharePoint dialog modal form is via Javascript below

12345 functionOpenPopUpPage(url, callback, width, height) function OpenPopUpPageWithTitle(url, callback, width, height, title) functionOpenPopUpPageWithDialogOptions(dialogOptions)

The dialogoptions supports the following

Property
OptionsDescription
Title A string that contains the title of the dialog.
Url A string that contains the URL of the page, appears in the dialog. If both URL and HTML is 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, appears in the dialog. If both HTML and URL is 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 was autosized by default. If AutoSize is False, the width of the dialog are set to 768 pixels.
Height An integer value that specifies the height of the dialog. If height is a specified, the height of the dialog is autosized by default. If AutoSize is False, the dialog height was set to 576 pixels.
Allowmaximize A Boolean value that specifies whether the dialog can is 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 is 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 the parameters, a dialogResult of type SP. RII DialogResult enumeration and a returnvalue of type object that contains any data returned by the dialog.
Args An object, that contains data, is passed to the dialog.

This is with assumption, the following SharePoint JS file is loaded:

    1. Sp. Core.js
    2. Sp. RII Dialog.js
Hence, you can always add this JS to your custom app to do the call out! Reference: http://wp.ahcheng.com/2013/04/09/calling-dialog-modal-form-in-sharepoint-2013/

SharePoint 2013 dialog box

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.