alfresco-ng2-components/docs/content-services/components/content-node-selector-panel.component.md
Andy Stark 8a86981da7 [ADF-4249] Fixed issues with ToC and auto-linking tools (#4492)
* [ADF-4249] Fixed issues with anchors in contents sections

* [ADF-4249] Removed redundant copy of edit proc filter cloud docs

* [ADF-4249] Fixed YAML template generation for accessor props

* [ADF-4249] Fixed ToC link generation

* [ADF-4249] Fixed type alias links in component docs
2019-03-25 17:56:25 +00:00

4.4 KiB

Title, Added, Status, Last reviewed
Title Added Status Last reviewed
Content Node Selector Panel component v2.1.0 Active 2019-03-20

Content Node Selector Panel component

Opens a Content Node Selector in its own dialog window.

Content Node Selector screenshot

Basic Usage

    <adf-content-node-selector-panel
        [currentFolderId]="currentFolderId"
        [dropdownHideMyFiles]="dropdownHideMyFiles"
        [dropdownSiteList]="dropdownSiteList"
        [rowFilter]="rowFilter"
        [imageResolver]="imageResolver"
        (select)="onSelect($event)">
    </adf-content-node-selector-panel>

Class members

Properties

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.
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.

Events

Name Type Description
select EventEmitter<Node[]> Emitted when the user has chosen an item.

Details

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.

Using the breadcrumbTransform function

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.

See also