Interface IVivaDashboard
Represents Viva Dashboard page
Namespace: PnP.Core.Model.SharePoint
Assembly: PnP.Core.dll
Syntax
public interface IVivaDashboard
Represents Viva Dashboard page
public interface IVivaDashboard
Returns list of ACEs added to the Dashboard
List<AdaptiveCardExtension> ACEs { get; }
PnP.Core.Model.SharePoint.List<AdaptiveCardExtension>
|
Adds new ACE
void AddACE(AdaptiveCardExtension ace)
AdaptiveCardExtension
ace
ACE to add |
Adds new ACE
void AddACE(AdaptiveCardExtension ace, int order)
AdaptiveCardExtension
ace
ACE to add |
System.Int32
order
Order of the ACE in the dashboard |
Creates a new ACE for adding on the dashboard based upon the default settings of the
AdaptiveCardExtension NewACE(Guid aceId, CardSize cardSize = default(CardSize))
Guid
aceId
ID of the ace to instantiate |
CardSize
cardSize
Card to use when the ACE is added to the dashboard |
AdaptiveCardExtension
Configured ACE, ready for customization and adding |
Creates a new ACE for adding on the dashboard based upon the default settings of the
AdaptiveCardExtension NewACE(DefaultACE defaultACE, CardSize cardSize = default(CardSize))
DefaultACE
defaultACE
OOB ace to instantiate |
CardSize
cardSize
Card to use when the ACE is added to the dashboard |
AdaptiveCardExtension
Configured ACE, ready for customization and adding |
Allows Dashboard to read custom Adaptive Card Extension as a custom ACE with custom properties. Once used You can access custom ACEs by dashboard.ACEs.OfTypeT();
void RegisterCustomACEFactory(ACEFactory aceFactory)
ACEFactory
aceFactory
An implementation of ACEFactory for your custom ACE |
Removes ACE with provided Guid from the Dashboard
void RemoveACE(Guid instanceId)
Guid
instanceId
|
Saves changes made to ACEs by persisting the dashboard
void Save()
Saves changes made to ACEs by persisting the dashboard
Task SaveAsync()
Task
|
Updates an existing dashboard ACE
void UpdateACE(AdaptiveCardExtension ace)
AdaptiveCardExtension
ace
ACE to update |
Updates an existing dashboard ACE
void UpdateACE(AdaptiveCardExtension ace, int order)
AdaptiveCardExtension
ace
ACE to update |
System.Int32
order
Order of the ACE in the dashboard |