mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
43 lines
1.4 KiB
Markdown
43 lines
1.4 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](https://github.com/Alfresco/alfresco-js-api/blob/master/src/alfresco-core-rest-api/docs/SiteEntry.md) 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://support.hyland.com/r/Alfresco/Alfresco-Content-Services/23.3/Alfresco-Content-Services/Using/Sites)
|
|
section of the Content Services documentation for more information.
|
|
|
|
## See also
|
|
|
|
- [Sites dropdown component](../components/sites-dropdown.component.md)
|