alfresco-ng2-components/docs/content-services/components/categories-management.component.md
MichalKinas a563dc2f54
[ACS-4523] Assigning content to categories (#8451)
* [ACS-4523] Add categories management mode component, manage mode completed

* [ACS-4523] Add categories management fixes and unit tests

* [ACS-4523] Add unit tests to content metadata

* ACS-4523] CR fixes

* [ACS-4523] Tag and category name controls decoupled

* [ACS-4523] CR fixes

* [ACS-4523] CR fixes

* [ACS-4523] CR fixes

* [ACS-4523] Display path for already linked categories

* [ACS-4523] Add new license header

* [ACS-4523] Fix category service import
2023-04-20 18:49:45 +02:00

2.7 KiB

Title, Added, Status, Last reviewed
Title Added Status Last reviewed
Categories management component v6.0.0-A.3 Active 2023-04-07

Categories management component

Component allows to both assign/unassign categories to content and create multiple categories depending on selected mode. In assign mode component is composed of: list of categories that will be assigned to a file, input to search for existing categories that user can select and second list under the input containing existing categories that node can be assigned to. In crud mode component is composed of: list of categories that will be created, input to type a name of category that will be created and a list of categories existing under a given parent, in this mode existing categories are not selectable.

Basic Usage

<adf-categories-management
    [(categoryNameControlVisible)]="categoryControlVisible"
    [disableRemoval]="saving"
    [categories]="categories"
    [parentId]="parentId"
    [managementMode]="categoriesManagementMode"
    [classifiableChanged]="classifiableChanged"
    (categoriesChange)="storeCategoriesToAssign($event)">
</adf-categories-management>

Class members

Properties

Name Type Default value Description
categories Category[] [] List of categories to assign/create.
categoryNameControlVisible boolean false Determines if category name control is visible.
classifiableChanged Observable<void> (optional) Observable emitting when classifiable aspect changes for a given node.
disableRemoval boolean false Determines if categories assigned/created can be unassigned/removed from the list.
managementMode CategoriesManagementMode Management mode determines if component works in assign/unassign mode or create mode.
parentId string (optional) ID of a parent category that new categories will be created under.

Events

Name Type Description
categoriesChange EventEmitter<Category> Emitted when categories list changes.
categoryNameControlVisibleChange EventEmitter<boolean> Emitted when category name control visibility changes.