alfresco-ng2-components/docs/sites-dropdown.component.md
suzanadirla 68239cd002 [ADF-1599] [Destination Picker] Updates to match the designed component (#2642)
* [ADF-1599] fix design issues

Search Term Highlight text to be orange (primary color)
Main action button text label to be orange (primary color)
Main action button text to be in Uppercase
Main action button to relate to the action i.e. MOVE or COPY
Dialog title: Name of item to move/copy should be in 'quotes'

* [ADF-1599] fix Dropdown	Placeholder text from 'Site List' to 'Select Location'

* [ADF-1599] fix Dropdown	Placeholder text from 'Site List' to 'Select Location'

* fix 'Select Location' width and bottom margin

* [ADF-1599] update document picker to match design

* [ADF-1599] fix failing tests

* [ADF-1599] update the unit tests

* [ADF-1599] use only colors from $theme on component scss file

* [ADF-1599] change needed after resolving conflict on merge
2017-11-22 13:40:47 +00:00

1.4 KiB

Sites Dropdown component

Displays a dropdown menu to show and interact with the sites of the current user.

Dropdown sites

Basic Usage

 <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
siteList any[] null A custom list of sites to be displayed by the dropdown. If no value is given, the sites of the current user are displayed by default. A list of objects only with properties 'title' and 'guid' is enough to be able to display the dropdown.
placeholder string 'DROPDOWN.PLACEHOLDER_LABEL' The placeholder text/the key from translation files for the placeholder text to be shown by default

Events

Name Returned Type Description
change SiteModel emitted when user selects a site. When default option is selected an empty model is emitted