mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
* Release Note for 4.2 - Initial draft. * update dep * documentation * fix * remove script * lint Co-authored-by: Eugenio Romano <eugenio.romano@alfresco.com> Co-authored-by: Eugenio Romano <eromano@users.noreply.github.com>
43 lines
1.2 KiB
Markdown
43 lines
1.2 KiB
Markdown
---
|
|
Title: Library dialog component
|
|
Added: v3.0.0
|
|
Status: Active
|
|
Last reviewed: 2018-12-07
|
|
---
|
|
|
|
# [Library dialog component](../../../lib/content-services/src/lib/dialogs/library/library.dialog.ts "Defined in library.dialog.ts")
|
|
|
|
Creates a new Content Services document library/site.
|
|
|
|

|
|
|
|
## Basic Usage
|
|
|
|
```html
|
|
<adf-library-dialog
|
|
(success)="useLibraryDetails($event)"
|
|
(error)="handleError()"
|
|
>
|
|
</adf-library-dialog>
|
|
```
|
|
|
|
## Class members
|
|
|
|
### Events
|
|
|
|
| Name | Type | Description |
|
|
| --- | --- | --- |
|
|
| error | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<any>` | Emitted when an error occurs. |
|
|
| success | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<any>` | Emitted when the new library is created successfully. The event parameter is a SiteEntry object with the details of the newly-created library. |
|
|
|
|
## Details
|
|
|
|
This component lets the user create a new document library/site with the usual
|
|
name, ID, description and access restrictions. See the
|
|
[Sites](https://docs.alfresco.com/6.0/concepts/sites-intro.html)
|
|
section of the Content Services documentation for more information.
|
|
|
|
## See also
|
|
|
|
* [Sites dropdown component](../components/sites-dropdown.component.md)
|