Skip to content

Commit

Permalink
Added xxxClientSideComponentId and xxxFormClientSideComponentProperti…
Browse files Browse the repository at this point in the history
…es properties for `IContentType` #1421
  • Loading branch information
jansenbe committed Mar 13, 2024
1 parent cd75581 commit abc1815
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).

- Improved support for reading 'Image' and 'Location' fields #1411 [wizofaus - Dylan Nicholson]
- Support for setting 'Image' and 'Location' fields [jansenbe - Bert Jansen]
- Added xxxClientSideComponentId and xxxFormClientSideComponentProperties properties for `IContentType` #1421 [jansenbe - Bert Jansen]

### Changed

Expand Down
12 changes: 12 additions & 0 deletions src/sdk/PnP.Core/Model/SharePoint/Core/Internal/ContentType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,18 @@ public ContentType()

public bool Sealed { get => GetValue<bool>(); set => SetValue(value); }

public string NewFormClientSideComponentId { get => GetValue<string>(); set => SetValue(value); }

public string NewFormClientSideComponentProperties { get => GetValue<string>(); set => SetValue(value); }

public string EditFormClientSideComponentId { get => GetValue<string>(); set => SetValue(value); }

public string EditFormClientSideComponentProperties { get => GetValue<string>(); set => SetValue(value); }

public string DisplayFormClientSideComponentId { get => GetValue<string>(); set => SetValue(value); }

public string DisplayFormClientSideComponentProperties { get => GetValue<string>(); set => SetValue(value); }

public IFieldLinkCollection FieldLinks { get => GetModelCollectionValue<IFieldLinkCollection>(); }

public IFieldCollection Fields { get => GetModelCollectionValue<IFieldCollection>(); }
Expand Down
36 changes: 36 additions & 0 deletions src/sdk/PnP.Core/Model/SharePoint/Core/Public/IContentType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,42 @@ public interface IContentType : IDataModel<IContentType>, IDataModelGet<IContent
/// </summary>
public bool Sealed { get; set; }

/// <summary>
/// The unique identifier of the client-side component defined with SharePoint Framework
/// </summary>
public string NewFormClientSideComponentId { get; set; }

/// <summary>
/// This property is only used when a NewFormClientSideComponentId is specified. It is optional.
/// If non-empty, the string must contain a JSON object with custom initialization properties
/// whose format and meaning are defined by the client-side component.
/// </summary>
public string NewFormClientSideComponentProperties { get; set; }

/// <summary>
/// The unique identifier of the client-side component defined with SharePoint Framework
/// </summary>
public string EditFormClientSideComponentId { get; set; }

/// <summary>
/// This property is only used when a EditFormClientSideComponentId is specified. It is optional.
/// If non-empty, the string must contain a JSON object with custom initialization properties
/// whose format and meaning are defined by the client-side component.
/// </summary>
public string EditFormClientSideComponentProperties { get; set; }

/// <summary>
/// The unique identifier of the client-side component defined with SharePoint Framework
/// </summary>
public string DisplayFormClientSideComponentId { get; set; }

/// <summary>
/// This property is only used when a DisplayFormClientSideComponentId is specified. It is optional.
/// If non-empty, the string must contain a JSON object with custom initialization properties
/// whose format and meaning are defined by the client-side component.
/// </summary>
public string DisplayFormClientSideComponentProperties { get; set; }

/// <summary>
/// Gets the collection of field links of the Content Type.
/// Implements <see cref="IQueryable{T}"/>. <br />
Expand Down

0 comments on commit abc1815

Please sign in to comment.