Show-ModalDialog

Shows Sitecore Sheer control as a modal dialog.

Syntax

Show-ModalDialog -Control <String> [-Parameters <Hashtable>] [-HandleParameters <Hashtable>] [-Title <String>] [-Width <Int32>] [-Height <Int32>]

Show-ModalDialog -Url <String> [-HandleParameters <Hashtable>] [-Title <String>] [-Width <Int32>] [-Height <Int32>]

Detailed Description

Shows Sitecore Sheer control as a modal dialog. If control returns a value - the value will be passed back as the result of the command execution.

© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions

Parameters

-Control <String>

Name of the Sitecore Sheer control to show

-Url <String>

A fully formed URL that constitutes a control execution request.

-Parameters <Hashtable>

Hashtable of parameters to pass to the control in the url.

-HandleParameters <Hashtable>

-Title <String>

Title of the control dialog.

-Width <Int32>

Width of the control dialog.

-Height <Int32>

Height of the control dialog.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • Sitecore.Data.Items.Item

Outputs

The output type is the type of the objects that the cmdlet emits.

  • System.String

Notes

Help Author: Adam Najmanowicz, Michael West

Examples

EXAMPLE

PS master:\> Show-ModalDialog -Control "ConfirmChoice" -Parameters @{btn_0="Yes (returns btn_0)"; btn_1="No (returns btn_1)"; btn_2="return btn_2"; te="Message Text"; cp="My Caption"} -Height 120 -Width 400

Last updated