Datasource service for category tree.
appendNodes(nodeToAppend: CategoryNode
, subNodes: CategoryNode
[]
)
Append more child nodes to already expanded parent node
CategoryNode
- Expanded parent nodeCategoryNode
[]
- List of nodes that will be added as children of expanded nodecollapseNode(nodeToCollapse: CategoryNode
)
Collapses a node removing all children from it.
CategoryNode
- Node to be collapsedconnect(): Observable
<
CategoryNode
[]>
Observable
<
CategoryNode
[]>
- disconnect()
expandNode(nodeToExpand: CategoryNode
, subNodes: CategoryNode
[]
)
Expands node applying subnodes to it.
CategoryNode
- Node to be expandedCategoryNode
[]
- List of nodes that will be added as children of expanded nodegetChildren(parentNode: CategoryNode
): CategoryNode
[]
Gets children of the node
CategoryNode
- Parent nodeCategoryNode
[]
- children of parent nodegetParentNode(parentNodeId: string
): CategoryNode
|undefined
Gets parent node of given node. If node with parentNodeId is not found it returns undefined.
string
- Id of a parent node to be foundCategoryNode
|undefined
- parent node or undefined when not foundgetSubNodes(parentNodeId: string
, skipCount?: number
, maxItems?: number
, name?: string
): Observable
<
TreeResponse
<
CategoryNode
>>
Gets categories as nodes for category tree.
string
- Identifier of a parent categorynumber
- (Optional) Number of top categories to skipnumber
- (Optional) Maximum number of subcategories returned from string
- (Optional) Optional parameter which specifies if categories should be filtered out by name or not. If not specified then returns categories without filtering.Observable
<
TreeResponse
<
CategoryNode
>>
- isEmpty(): boolean
Checks if tree is empty
boolean
- booleanremoveNode(node: CategoryNode
)
Removes provided node from the tree
CategoryNode
- Node to be removedCategory tree datasource service acts as datasource for tree component utilizing category service. See the Tree component and Tree service to get more details on how datasource is used.
© 2023 Alfresco Software, Inc. All Rights Reserved.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.