Title | Added | Status | Last reviewed |
---|---|---|---|
Content Node Selector Panel component |
v2.1.0 |
Active |
2024-06-21 |
Opens a Content Node Selector in its own dialog window.
<adf-content-node-selector-panel
[currentFolderId]="currentFolderId"
[dropdownHideMyFiles]="dropdownHideMyFiles"
[dropdownSiteList]="dropdownSiteList"
[rowFilter]="rowFilter"
[imageResolver]="imageResolver"
(select)="onSelect($event)">
</adf-content-node-selector-panel>
Name | Type | Default value | Description |
---|---|---|---|
breadcrumbTransform | Function |
Transformation to be performed on the chosen/folder node before building the breadcrumb UI. Can be useful when custom formatting is needed for the breadcrumb. You can change the path elements from the node that are used to build the breadcrumb using this function. | |
currentFolderId | string |
null | Node ID of the folder currently listed. |
dropdownHideMyFiles | boolean |
false | Hide the "My Files" option added to the site list by default. See the Sites Dropdown component for more information. |
dropdownSiteList | SitePaging |
null | Custom site for site dropdown. This is the same as the siteList . property of the Sites Dropdown component (see its doc page for more information). |
imageResolver | ImageResolver |
null | Custom image resolver function. See the Image Resolver Model page for more information. |
isSelectionValid | ValidationFunction |
defaultValidation | Function used to decide if the selected node has permission to be selected. Default value is a function that always returns true. |
pageSize | number |
Number of items shown per page in the list. | |
restrictRootToCurrentFolderId | boolean |
false | If true will restrict the search and breadcrumbs to the currentFolderId |
selectionMode | "single" | "multiple" |
"single" | Define the selection mode for document list. The allowed values are single or multiple |
where | string |
Custom where filter function. See the Document List component for more information. | |
excludeSiteContent | string[] |
Custom list of site content componentIds. Used to filter out the corresponding items from the displayed nodes | |
rowFilter | RowFilter |
Custom row filter function. See the Row Filter Model page for more information. | |
showDropdownSiteList | boolean |
Toggle sites list dropdown rendering | |
showFilesInResult | void |
Shows the files and folders in the search result | |
showNodeCounter | boolean |
Shows the node counter in the breadcrumb | |
showSearch | boolean |
Toggle search input rendering |
Name | Type | Description |
---|---|---|
currentFolder | EventEmitter<Node> |
Emitted when current folder loaded. |
folderLoaded | EventEmitter<any> |
Emitted when folder loaded. |
navigationChange | EventEmitter<NodeEntryEvent> |
Emitted when the navigation changes. |
select | EventEmitter<Node[]> |
Emitted when the user has chosen an item. |
showingSearch | EventEmitter<boolean> |
Emitted when search is running. |
siteChange | EventEmitter<string> |
Emitted when the select site changes. |
This component opens a content node selector in its own dialog window. This behaves a lot like the standard file open/save dialogs used by applications to choose files. Full details are given in the Content Node Selector component page (this is similar but does not manage the dialog window for you).
Also, the Content Node Dialog service has several methods that give you finer control over the behavior of the dialog.
The breadcrumbTransform
property lets you modify the Node
object that is used to generate the
list of breadcrumbs. You can use this, for example, to remove path elements that are not
relevant to the use case.
See the Breadcrumb component page for an example of how to use this function.