Welcome to the Alfresco Builder Network

Searches Groups.

Basic Usage

<adf-cloud-group
    [applicationName]="'simple-app'"
    [mode]="'multiple'">
</adf-cloud-group>

adf-cloud-group

Class members

Properties

NameTypeDefault valueDescription
applicationNamestringName of the application. If specified this shows the users who have access to the app.
modestringUser selection mode (single/multiple).
preSelectGroupsGroupModel[][]Array of users to be pre-selected. This pre-selects all users in multi selection mode and only the first user of the array in single selection mode.

Events

NameTypeDescription
removeGroupEventEmitter<GroupModel>Emitted when a group is removed.
selectGroupEventEmitter<GroupModel>Emitted when a group is selected.

Details

Selection Mode

You can specify either single selection or multiple selection (single is the default):

Single selection

<adf-cloud-group></adf-cloud-group>

adf-cloud-group

Multiple selection

<adf-cloud-group
    [mode]="'multiple'">
</adf-cloud-group>

adf-cloud-group

Pre-selection

Usage example:

import { ObjectDataTableAdapter }  from '@alfresco/adf-core';

@Component({...})
class MyComponent {
    groups: any;

    constructor() {
        this.groups =
            [
                {id: 1, name: 'Group 1'},
                {id: 2, name: 'Group 2'}
            ];
    }
}
<adf-cloud-group
    [mode]="'multiple'"
    [preSelectGroups]="groups">
</adf-cloud-group>

Interested in trying Alfresco?

Try Now