Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 7361e71

Browse files
devversionThomasBurleson
authored andcommitted
feat(autocomplete): allow disabling asterisk on floating label
Closes #7119
1 parent 5e22256 commit 7361e71

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/autocomplete/js/autocompleteDirective.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ angular
5252
* @param {boolean=} md-autofocus If true, the autocomplete will be automatically focused when a `$mdDialog`,
5353
* `$mdBottomsheet` or `$mdSidenav`, which contains the autocomplete, is opening. <br/><br/>
5454
* Also the autocomplete will immediately focus the input element.
55+
* @param {boolean=} md-no-asterisk When present, asterisk will not be appended to the floating label
5556
* @param {boolean=} md-autoselect If true, the first item will be selected by default
5657
* @param {string=} md-menu-class This will be applied to the dropdown menu for styling
5758
* @param {string=} md-floating-label This will add a floating label to autocomplete and wrap it in
@@ -244,6 +245,7 @@ function MdAutocomplete () {
244245
ng-model="$mdAutocompleteCtrl.scope.searchText"\
245246
ng-keydown="$mdAutocompleteCtrl.keydown($event)"\
246247
ng-blur="$mdAutocompleteCtrl.blur()"\
248+
' + (attr.mdNoAsterisk != null ? 'md-no-asterisk="' + attr.mdNoAsterisk + '"' : '') + '\
247249
ng-focus="$mdAutocompleteCtrl.focus()"\
248250
aria-owns="ul-{{$mdAutocompleteCtrl.id}}"\
249251
' + (attr.mdSelectOnFocus != null ? 'md-select-on-focus=""' : '') + '\

0 commit comments

Comments
 (0)