ContentGroup Class

ContentGroup class. Content Groups define content displayed in content views that are laid out using a ContentLayout.

Methods

Name Description
constructor(groupProps: ContentGroupProps): ContentGroup    
clearContentControls(): void Clears the map of content controls.  
getContentControl(contentProps: ContentProps, index: number): ContentControl | undefined Gets a ContentControl from the Content Group based on its ContentProps.  
getContentControlById(id: string): ContentControl | undefined Gets a ContentControl from the Content Group with a given ID.  
getContentControls(): ContentControl[] Gets an array of the content controls representing the Content Views.  
getContentNodes(): React.ReactNode[] Gets the React nodes representing the Content Views in this Content Group.  
getControlFromElement(node: React.ReactNode): ContentControl | undefined Gets the ContentControl associated with a given React node representing a Content View.  
onFrontstageDeactivated(): void Called when Frontstage is deactivated.  
onFrontstageReady(): void Called when Frontstage is ready.  
refreshContentNodes(): void Refreshes the React nodes representing the Content Views in this Content Group..  
toJSON(contentCallback?: ContentCallback): ContentGroupProps Creates ContentGroupProps for JSON purposes Beta

Properties

Name Type Description
contentPropsList ContentProps[]    
groupId string    

Defined in

Last Updated: 10 September, 2019