mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-1549] Moved docassets folder inside docs folder (#2367)
This commit is contained in:
committed by
Eugenio Romano
parent
a9eff7fbaf
commit
7f3a4fc513
@@ -321,7 +321,7 @@ export class FilesComponent implements OnInit {
|
||||
We've added `console.log(node)` for the `getNodeInfo` callback just for study and debug purposes.
|
||||
It helps examining other valuable information you can have access to if needed:
|
||||
|
||||

|
||||

|
||||
|
||||
**Important note**: for this particular scenario you must also trigger `changeDetector.detectChanges()` as in the example above.
|
||||
|
||||
@@ -377,7 +377,7 @@ adf-document-list >>> adf-datatable tr.is-selected .image-table-cell::before {
|
||||
|
||||
Once your application starts you should see the following icon for each selected row:
|
||||
|
||||

|
||||

|
||||
|
||||
### Calling DocumentList api directly
|
||||
|
||||
@@ -436,7 +436,7 @@ export class MyAppComponent implements AfterViewInit {
|
||||
|
||||
Example above should produce the following browser console output:
|
||||
|
||||

|
||||

|
||||
|
||||
Now you are able to access DocumentList properties or to call methods directly.
|
||||
|
||||
@@ -485,7 +485,7 @@ A custom set of columns can look like the following:
|
||||
</adf-document-list>
|
||||
```
|
||||
|
||||

|
||||

|
||||
|
||||
You can also use HTML-based schema declaration used by DataTable, TaskList and other components:
|
||||
|
||||
@@ -669,7 +669,7 @@ In the Example below we will add the [ng2-alfresco-tag](https://www.npmjs.com/pa
|
||||
</data-column>
|
||||
```
|
||||
|
||||

|
||||

|
||||
|
||||
### Actions
|
||||
|
||||
@@ -749,7 +749,7 @@ export class MyView {
|
||||
|
||||
All document actions are rendered as a dropdown menu as on the picture below:
|
||||
|
||||

|
||||

|
||||
|
||||
### Default action handlers
|
||||
|
||||
@@ -799,7 +799,7 @@ export class MyComponent {
|
||||
}
|
||||
```
|
||||
|
||||

|
||||

|
||||
|
||||
#### Delete - Disable button checking the permission
|
||||
|
||||
@@ -823,7 +823,7 @@ The ContentActionComponent provides the property permission that must contain th
|
||||
</adf-document-list>
|
||||
```
|
||||
|
||||

|
||||

|
||||
|
||||
#### Download
|
||||
|
||||
@@ -843,13 +843,13 @@ Initiates download of the corresponding document file.
|
||||
</adf-document-list>
|
||||
```
|
||||
|
||||

|
||||

|
||||
|
||||
#### Copy and move
|
||||
|
||||
Shows the destination chooser dialog for copy and move actions. By default the destination chooser lists all the folders of the subject item's parent (except the selected item which is about to be copied/moved if it was a folder itself also).
|
||||
|
||||

|
||||

|
||||
|
||||
```html
|
||||
<adf-document-list ...>
|
||||
@@ -891,7 +891,7 @@ Defining error, permission and success callbacks are pretty much the same as doi
|
||||
- The success callback's only parameter is the translatable success message string (could be used for showing in snackbar for example)
|
||||
- The permissionEvent callback is the same as described above with the delete action
|
||||
|
||||

|
||||

|
||||
|
||||
### Folder actions
|
||||
|
||||
@@ -943,7 +943,7 @@ export class MyView {
|
||||
}
|
||||
```
|
||||
|
||||

|
||||

|
||||
|
||||
### Context Menu
|
||||
|
||||
@@ -953,7 +953,7 @@ DocumentList also provides integration for 'Context Menu Service' from the
|
||||
You can automatically turn all menu actions (for the files and folders)
|
||||
into context menu items like shown below:
|
||||
|
||||

|
||||

|
||||
|
||||
Enabling context menu is very simple:
|
||||
|
||||
@@ -1159,11 +1159,11 @@ Now you can declare columns and assign `desktop-only` class where needed:
|
||||
|
||||
**Desktop View**
|
||||
|
||||

|
||||

|
||||
|
||||
**Mobile View**
|
||||
|
||||

|
||||

|
||||
|
||||
### Custom row permissions style
|
||||
|
||||
@@ -1225,7 +1225,7 @@ adf-document-list >>> adf-datatable tr.document-list__disable {
|
||||
|
||||
By default DocumentList provides the following content for the empty folder:
|
||||
|
||||

|
||||

|
||||
|
||||
This can be changed by means of the custom html template:
|
||||
|
||||
@@ -1241,7 +1241,7 @@ This can be changed by means of the custom html template:
|
||||
|
||||
That will give the following output:
|
||||
|
||||

|
||||

|
||||
|
||||
### Customizing default actions
|
||||
|
||||
|
Reference in New Issue
Block a user