Interface IVivaDashboard
- Namespace
- PnP.Core.Model.SharePoint
- Assembly
- PnP.Core.dll
Represents Viva Dashboard page
public interface IVivaDashboard
Properties
ACEs
Returns list of ACEs added to the Dashboard
List<AdaptiveCardExtension> ACEs { get; }
Property Value
Methods
AddACE(AdaptiveCardExtension)
Adds new ACE
void AddACE(AdaptiveCardExtension ace)
Parameters
aceAdaptiveCardExtensionACE to add
AddACE(AdaptiveCardExtension, int)
Adds new ACE
void AddACE(AdaptiveCardExtension ace, int order)
Parameters
aceAdaptiveCardExtensionACE to add
orderintOrder of the ACE in the dashboard
NewACE(DefaultACE, CardSize)
Creates a new ACE for adding on the dashboard based upon the default settings of the
AdaptiveCardExtension NewACE(DefaultACE defaultACE, CardSize cardSize = CardSize.Medium)
Parameters
defaultACEDefaultACEOOB ace to instantiate
cardSizeCardSizeCard to use when the ACE is added to the dashboard
Returns
- AdaptiveCardExtension
Configured ACE, ready for customization and adding
NewACE(Guid, CardSize)
Creates a new ACE for adding on the dashboard based upon the default settings of the
AdaptiveCardExtension NewACE(Guid aceId, CardSize cardSize = CardSize.Medium)
Parameters
aceIdGuidID of the ace to instantiate
cardSizeCardSizeCard to use when the ACE is added to the dashboard
Returns
- AdaptiveCardExtension
Configured ACE, ready for customization and adding
RegisterCustomACEFactory(ACEFactory)
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)
Parameters
aceFactoryACEFactoryAn implementation of ACEFactory for your custom ACE
RemoveACE(Guid)
Removes ACE with provided Guid from the Dashboard
void RemoveACE(Guid instanceId)
Parameters
instanceIdGuid
Save()
Saves changes made to ACEs by persisting the dashboard
void Save()
SaveAsync()
Saves changes made to ACEs by persisting the dashboard
Task SaveAsync()
Returns
UpdateACE(AdaptiveCardExtension)
Updates an existing dashboard ACE
void UpdateACE(AdaptiveCardExtension ace)
Parameters
aceAdaptiveCardExtensionACE to update
UpdateACE(AdaptiveCardExtension, int)
Updates an existing dashboard ACE
void UpdateACE(AdaptiveCardExtension ace, int order)
Parameters
aceAdaptiveCardExtensionACE to update
orderintOrder of the ACE in the dashboard