Click or drag to resize
PortalHelperGetAddInlineWidgetScript Method
Gets the javascript code which ensures adding a new inline widget to the page.

Namespace: CMS.PortalEngine.Web.UI
Assembly: CMS.PortalEngine.Web.UI (in CMS.PortalEngine.Web.UI.dll) Version: 12.0.0
Syntax
C#
public static string GetAddInlineWidgetScript(
	WidgetInfo widgetInfo,
	DataRow row,
	List<FormFieldInfo> fields,
	IEnumerable<string> additionalFieldsNames
)

Parameters

widgetInfo
Type: CMS.PortalEngineWidgetInfo
The widget info object
row
Type: System.DataDataRow
The widget data
fields
Type: System.Collections.GenericListFormFieldInfo
The list of inline widget properties which will be saved in the text editor
additionalFieldsNames
Type: System.Collections.GenericIEnumerableString
Names of fields that are required to be saved within widget properties.

Return Value

Type: String
See Also