Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
feat(autocomplete): adds md-menu-class to allow users to add a clas…
Browse files Browse the repository at this point in the history
…s to the dropdown menu for custom styling
  • Loading branch information
Robert Messerle committed Apr 8, 2015
1 parent 0df4b16 commit 860897d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/autocomplete/js/autocompleteDirective.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
* @param {number=} md-delay Specifies the amount of time (in milliseconds) to wait before looking for results
* @param {boolean=} md-autofocus If true, will immediately focus the input element
* @param {boolean=} md-autoselect If true, the first item will be selected by default
* @param {string=} md-menu-class This will be applied to the dropdown menu for styling
*
* @usage
* <hljs lang="html">
Expand Down Expand Up @@ -59,7 +60,8 @@
delay: '=?mdDelay',
autofocus: '=?mdAutofocus',
floatingLabel: '@?mdFloatingLabel',
autoselect: '=?mdAutoselect'
autoselect: '=?mdAutoselect',
menuClass: '@?mdMenuClass'
},
template: function (element, attr) {
attr.$mdAutocompleteTemplate = element.html();
Expand Down Expand Up @@ -112,7 +114,7 @@
ng-if="$mdAutocompleteCtrl.loading"\
md-mode="indeterminate"></md-progress-linear>\
<ul role="presentation"\
class="md-autocomplete-suggestions"\
class="md-autocomplete-suggestions {{menuClass || \'\'}}"\
id="ul-{{$mdAutocompleteCtrl.id}}"\
ng-mouseenter="$mdAutocompleteCtrl.listEnter()"\
ng-mouseleave="$mdAutocompleteCtrl.listLeave()"\
Expand Down

0 comments on commit 860897d

Please sign in to comment.