alfresco-ng2-components/docs/process-services-cloud/process-filters-cloud.component.md
siva kumar 242884db20 [ADF-3799] Process Filter definition in a component APS2 (#4048)
* * Generated EditProcessFilterComponent by cli
* Added MatExpansionModule

* * Added translation keys related to the editProcessFilterComponent
* Updated editProcessFilterComponent

* * Refactored EditProcessFilter component
* Created delete , save and saveAs  filter methods in the service
* Generated ProcessDialog component
* Exported process-cloud
* Added Unit tests to the EditProcessFilter

* * Added unit tests to the processFIlterDialog component* Refactored process-list-cloud-demo component

* * Added editProcessFilter documentaion.

* * Unified process filter cloud models

* * Used new process-filter-cloud model

* * Updated documentation

* * Updated demo component

* * Updated editProcessFilter unit tests

* * After rebase* Fixed missing documentation

* * Fixed conflicts
* Rebased with dev branch

* Fix import
2018-12-11 15:01:12 +00:00

1.9 KiB

Added, Status, Last reviewed
Added Status Last reviewed
v3.0.0 Active 2018-21-11

Process Filters Cloud Component

Lists all available process filters and allows to select a filter.

Basic Usage

<adf-cloud-process-filters
    [appName]="currentAppName"
    [showIcons]="true">
</adf-cloud-process-filters>

Class members

Properties

Name Type Default value Description
appName string (required) The application name
filterParam ProcessFilterCloudModel (optional) The filter to be selected by default
showIcons boolean false (optional) The flag hides/shows icon against each filter

Events

Name Type Description
filterClick EventEmitter<ProcessFilterCloudModel> Emitted when a filter is selected/clicked.
success EventEmitter<any> Emitted when filters are loaded successfully.
error EventEmitter<any> Emitted when any error occurs while loading the filters.

Details

The filterParam input can be used to select a filter as mentioned below.

<adf-cloud-process-filters
    [filterParam]="{name:'Running Processes'}">
</adf-cloud-process-filters>

A filter can be selected by using any of the ProcessFilterCloudModel property.

Name Type Description
id string The id of the filter
name string The name of the filter
key string The key of the filter
index string The zero-based position of the filter in the array