mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
clean all the events that start wit on prefix (#2536)
This commit is contained in:
committed by
Maurizio Vitale
parent
b2414781d4
commit
ded3847762
@@ -75,7 +75,7 @@ the following example:
|
||||
<adf-process-instance-filters
|
||||
[appId]="appId"
|
||||
(filterClick)="onProcessFilterClick($event)"
|
||||
(onSuccess)="onSuccessProcessFilterList($event)">
|
||||
(success)="onSuccessProcessFilterList($event)">
|
||||
</adf-process-instance-filters>
|
||||
</adf-accordion-group>
|
||||
</adf-accordion>
|
||||
|
@@ -34,5 +34,5 @@ The component generates and shows the charts
|
||||
|
||||
| Name | Description |
|
||||
| --- | --- |
|
||||
| onSuccess | Raised when the charts are loaded |
|
||||
| onError | Raised when an error occurs during the loading |
|
||||
| success | Raised when the charts are loaded |
|
||||
| error | Raised when an error occurs during the loading |
|
@@ -34,6 +34,6 @@ The component shows the list of all the available reports
|
||||
|
||||
| Name | Description |
|
||||
| --- | --- |
|
||||
| onSuccess | The event is emitted when the report list is loaded |
|
||||
| onError | The event is emitted when an error occurs during the loading |
|
||||
| success | The event is emitted when the report list is loaded |
|
||||
| error | The event is emitted when an error occurs during the loading |
|
||||
| reportClick | The event is emitted when the report in the list is selected |
|
||||
|
@@ -47,7 +47,7 @@ You can also hide chart parameters UI by setting the `hideParameters` to `true`:
|
||||
|
||||
| Name | Description |
|
||||
| --- | --- |
|
||||
| onSuccess | The event is emitted when the report parameters are loaded |
|
||||
| onError | The event is emitted when an error occurs during the loading |
|
||||
| success | The event is emitted when the report parameters are loaded |
|
||||
| error | The event is emitted when an error occurs during the loading |
|
||||
| reportSaved | The event is emitted when a report is saved |
|
||||
| reportDeleted | The event is emitted when a report is deleted |
|
@@ -45,5 +45,5 @@ The below component shows the diagram of a running process instance with the act
|
||||
|
||||
| Name | Description |
|
||||
| --- | --- |
|
||||
| onSuccess | Raised when the diagrams elements are loaded |
|
||||
| onError | Raised when an error occurs during loading |
|
||||
| success | Raised when the diagrams elements are loaded |
|
||||
| error | Raised when an error occurs during loading |
|
@@ -141,7 +141,7 @@ and store the form field as metadata. The param nameNode is optional.
|
||||
| formCompleted | [FormModel](https://github.com/Alfresco/alfresco-ng2-components/blob/master/ng2-components/ng2-activiti-form/src/components/widgets/core/form.model.ts) | Invoked when form is submitted with `Complete` outcome. |
|
||||
| formDataRefreshed | [FormModel](https://github.com/Alfresco/alfresco-ng2-components/blob/master/ng2-components/ng2-activiti-form/src/components/widgets/core/form.model.ts) | Invoked when form values are refreshed due to a data property change |
|
||||
| executeOutcome | [FormOutcomeEvent](https://github.com/Alfresco/alfresco-ng2-components/blob/master/ng2-components/ng2-activiti-form/src/components/widgets/core/form-outcome-event.model.ts) | Invoked when any outcome is executed, default behaviour can be prevented via `event.preventDefault()` |
|
||||
| onError | any | Invoked at any error |
|
||||
| error | any | Invoked at any error |
|
||||
|
||||
## Details
|
||||
|
||||
|
@@ -53,8 +53,8 @@ Authenticates to Alfresco Content Services and Alfresco Process Services.
|
||||
|
||||
| Name | Description |
|
||||
| --- | --- |
|
||||
| onSuccess | Raised when the login is done |
|
||||
| onError | Raised when the login fails |
|
||||
| success | Raised when the login is done |
|
||||
| error | Raised when the login fails |
|
||||
| executeSubmit | Raised when the form is submitted |
|
||||
|
||||
## Details
|
||||
@@ -66,8 +66,8 @@ Authenticates to Alfresco Content Services and Alfresco Process Services.
|
||||
```html
|
||||
<adf-login
|
||||
providers="ALL"
|
||||
(onSuccess)="mySuccessMethod($event)"
|
||||
(onError)="myErrorMethod($event)">
|
||||
(success)="mySuccessMethod($event)"
|
||||
(error)="myErrorMethod($event)">
|
||||
</adf-login>
|
||||
```
|
||||
|
||||
|
@@ -41,8 +41,8 @@ If both `appId` and `appName` are specified then `appName` will take precedence
|
||||
|
||||
| Name | Description |
|
||||
| --- | --- |
|
||||
| onSuccess | Raised when the list of filters has been successfully loaded from the server |
|
||||
| onError | Raised when an error occurs |
|
||||
| success | Raised when the list of filters has been successfully loaded from the server |
|
||||
| error | Raised when an error occurs |
|
||||
| filterClick | Raised when the user selects a filter from the list |
|
||||
|
||||
## Details
|
||||
|
@@ -38,9 +38,14 @@ This component renders a list containing all the process instances matched by th
|
||||
|
||||
### Events
|
||||
|
||||
- **rowClick**: Emitted when a row in the process list is clicked
|
||||
- **onSuccess**: Emitted when the list of process instances has been loaded successfully from the server
|
||||
- **onError**: Emitted when an error is encountered loading the list of process instances from the server
|
||||
| Name | Description |
|
||||
| --- | --- |
|
||||
| rowClick | Emitted when a row in the process list is clicked |
|
||||
| success | Emitted when the list of process instances has been loaded successfully from the server |
|
||||
| error | Emitted when an error is encountered loading the list of process instances from the server |
|
||||
|
||||
|
||||
|
||||
|
||||
## Details
|
||||
|
||||
|
@@ -52,7 +52,7 @@ Shows the details of the task id passed in input
|
||||
| formCompleted | Raised when form is submitted with `Complete` outcome. |
|
||||
| taskCreated | Raised when a checklist task is created. |
|
||||
| executeOutcome | Raised when any outcome is executed, default behaviour can be prevented via `event.preventDefault()` |
|
||||
| onError | Raised at any error |
|
||||
| error | Raised at any error |
|
||||
|
||||
## Details
|
||||
|
||||
|
@@ -40,8 +40,8 @@ If both `appId` and `appName` are specified then `appName` will take precedence
|
||||
| Name | Description |
|
||||
| --- | --- |
|
||||
| filterClick | Raised when the filter in the list is clicked |
|
||||
| onSuccess | Raised when the list is loaded |
|
||||
| onError | Raised if there is an error during the loading |
|
||||
| success | Raised when the list is loaded |
|
||||
| error | Raised if there is an error during the loading |
|
||||
|
||||
## Details
|
||||
|
||||
|
@@ -45,7 +45,7 @@ You can also use HTML-based schema declaration like shown below:
|
||||
|
||||
| Name | Description |
|
||||
| --- | --- |
|
||||
| onSuccess | Raised when the task list is loaded |
|
||||
| success | Raised when the task list is loaded |
|
||||
| rowClick | Raised when the task in the list is clicked |
|
||||
| rowsSelected | Raised when the a row is selected/unselected |
|
||||
|
||||
|
@@ -24,7 +24,7 @@
|
||||
[multipleFiles]="false"
|
||||
[acceptedFilesType]=".jpg,.gif,.png,.svg"
|
||||
[versioning]="false"
|
||||
(onSuccess)="customMethod($event)">
|
||||
(success)="customMethod($event)">
|
||||
</adf-upload-button>
|
||||
<file-uploading-dialog></file-uploading-dialog>
|
||||
```
|
||||
@@ -50,7 +50,7 @@
|
||||
|
||||
| Name | Description |
|
||||
| --- | --- |
|
||||
| onSuccess | Raised when the file is uploaded |
|
||||
| success | Raised when the file is uploaded |
|
||||
|
||||
## Details
|
||||
|
||||
|
@@ -17,7 +17,7 @@ Adds a drag and drop area to upload files to Alfresco.
|
||||
## Basic Usage
|
||||
|
||||
```html
|
||||
<adf-upload-drag-area (onSuccess)="customMethod($event)">
|
||||
<adf-upload-drag-area (success)="onSuccess($event)">
|
||||
<div style="width: 200px; height: 100px; border: 1px solid #888888">
|
||||
DRAG HERE
|
||||
</div>
|
||||
@@ -50,4 +50,4 @@ export class AppComponent {
|
||||
|
||||
| Name | Description |
|
||||
| --- | --- |
|
||||
| onSuccess | Raised when the file is uploaded |
|
||||
| success | Raised when the file is uploaded |
|
||||
|
@@ -25,7 +25,7 @@
|
||||
[servicePath]="string"
|
||||
[showData]="boolean"
|
||||
[contentType]="JSON | HTML | DATATABLE | TEXT"
|
||||
(onSuccess)= "logData($event)">
|
||||
(success)= "logData($event)">
|
||||
</adf-webscript-get>
|
||||
```
|
||||
|
||||
@@ -63,8 +63,14 @@ export class AppComponent {
|
||||
| scriptPath | string | alfresco | path to Web Script (as defined by Web Script) |
|
||||
| contentType | string | service | path where Web Script service is mapped default value |
|
||||
| contentType | string | TEXT | how to handle the data received from the web script JSON , HTML , DATATABLE or TEXT |
|
||||
| onSuccess | event | | You can get the plain data from the webscript through the **onSuccess** event parameter and use it as you need in your application |
|
||||
| showData | booleann | true | render the webscript data |
|
||||
| showData | boolean | true | render the webscript data |
|
||||
|
||||
|
||||
### Events
|
||||
|
||||
| Name | Description |
|
||||
| --- | --- |
|
||||
| success | You can get the plain data from the webscript through the **success** event parameter and use it as you need in your application |
|
||||
|
||||
**contentType** {string}
|
||||
***data*** {string} data containing the plain value you get from the webscipt as an output parameter
|
||||
@@ -162,11 +168,11 @@ This sample Web Scripts reside in your Alfresco Server. You can access the folde
|
||||
[scriptPath]="'Sample/folder/JSON_EXAMPLE'"
|
||||
[contentType]="'HTML'"
|
||||
[showData]="false"
|
||||
(onSuccess)="logDataExample($event)">
|
||||
(success)="logDataExample($event)">
|
||||
</adf-webscript-get>
|
||||
```
|
||||
|
||||
You can get the plain data from the webscript through the **onSuccess** event parameter and use it as you need in your application
|
||||
You can get the plain data from the webscript through the **success** event parameter and use it as you need in your application
|
||||
|
||||
```ts
|
||||
logDataExample(data) {
|
||||
|
Reference in New Issue
Block a user