Francesco Corti 5a4cc4edda
Release Note for 4.2 - Initial draft. (#6390)
* 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>
2020-12-07 21:03:41 +00:00

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.
![Dropdown sites](../../docassets/images/CreateLibraryDialog.png)
## 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)