Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

ClientSideHostProperties usage on CustomActionEntity #2542

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ public partial class CustomAction : BaseModel, IEquatable<CustomAction>
/// </summary>
public String ClientSideComponentProperties { get; set; }

/// <summary>
/// Gets or sets a value for the ClientSideHostProperties, if any
/// </summary>
public String ClientSideHostProperties { get; set; }
#endregion

#region Comparison code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ private void ProvisionCustomActionImplementation(object parent, CustomActionColl
#if !SP2013 && !SP2016
ClientSideComponentId = customAction.ClientSideComponentId,
ClientSideComponentProperties = customAction.ClientSideComponentProperties != null ? parser.ParseString(customAction.ClientSideComponentProperties) : customAction.ClientSideComponentProperties,
ClientSideHostProperties = customAction.ClientSideHostProperties != null ? parser.ParseString(customAction.ClientSideHostProperties) : customAction.ClientSideHostProperties,
#endif
CommandUIExtension = customAction.CommandUIExtension != null ? parser.ParseString(customAction.CommandUIExtension.ToString()) : string.Empty,
Description = parser.ParseString(customAction.Description),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6954,7 +6954,9 @@ public partial class CustomAction {
private string clientSideComponentIdField;

private string clientSideComponentPropertiesField;


private string clientSideHostPropertiesField;

public CustomAction() {
this.enabledField = true;
this.removeField = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4582,6 +4582,14 @@
</xsd:annotation>
</xsd:attribute>

<xsd:attribute name="ClientSideHostProperties" type="xsd:string" use="optional">
<xsd:annotation>
<xsd:documentation xml:lang="en">
The Client Side Host Properties of a customizer, optional attribute.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>

</xsd:complexType>

<xsd:complexType name="SiteWebhooksList">
Expand Down