mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
* Change translation * Add browser test runner to scripts * Adding option to hide the My Files option * Add documentation and fix property's name
38 lines
1009 B
Markdown
38 lines
1009 B
Markdown
# Sites Dropdown component
|
|
|
|
Displays a dropdown menu to show and interact with the sites of the current user.
|
|
|
|

|
|
|
|
<!-- markdown-toc start - Don't edit this section. npm run toc to generate it-->
|
|
|
|
<!-- toc -->
|
|
|
|
- [Basic Usage](#basic-usage)
|
|
* [Properties](#properties)
|
|
* [Events](#events)
|
|
|
|
<!-- tocstop -->
|
|
|
|
<!-- markdown-toc end -->
|
|
|
|
## Basic Usage
|
|
|
|
```html
|
|
<adf-sites-dropdown
|
|
(change)="getSiteContent($event)">
|
|
</adf-sites-dropdown>
|
|
```
|
|
|
|
### Properties
|
|
|
|
| Attribute | Type | Default | Description |
|
|
| --- | --- | --- | --- |
|
|
| hideMyFiles | boolean | false | Hide the "My Files" option added to the list by default |
|
|
|
|
### Events
|
|
|
|
| Name | Returned Type | Description |
|
|
| --- | --- | --- |
|
|
| change | [SiteModel](https://github.com/Alfresco/alfresco-ng2-components/blob/master/ng2-components/ng2-alfresco-core/src/models/site.model.ts) | emitted when user selects a site. When default option is selected an empty model is emitted |
|