@@ -107,6 +107,12 @@ angular
107
107
* `md-input-container`.
108
108
* @param {string= } md-input-name The name attribute given to the input element to be used with
109
109
* FormController.
110
+ * @param {string= } md-menu-class This will be applied to the dropdown menu for styling
111
+ * @param {string= } md-input-class This will be applied to the input for styling. This attribute is only valid when a `md-floating-label` is defined
112
+ * @param {string= } md-floating-label This will add a floating label to autocomplete and wrap it in
113
+ * `md-input-container`
114
+ * @param {string= } md-input-name The name attribute given to the input element to be used with
115
+ * FormController
110
116
* @param {string= } md-select-on-focus When present the inputs text will be automatically selected
111
117
* on focus.
112
118
* @param {string= } md-input-id An ID to be added to the input element.
@@ -250,6 +256,7 @@ function MdAutocomplete ($$mdSvgRegistry) {
250
256
floatingLabel : '@?mdFloatingLabel' ,
251
257
autoselect : '=?mdAutoselect' ,
252
258
menuClass : '@?mdMenuClass' ,
259
+ inputClass : '@?mdInputClass' ,
253
260
inputId : '@?mdInputId' ,
254
261
escapeOptions : '@?mdEscapeOptions' ,
255
262
dropdownItems : '=?mdDropdownItems' ,
@@ -354,6 +361,7 @@ function MdAutocomplete ($$mdSvgRegistry) {
354
361
' + ( tabindex != null ? 'tabindex="' + tabindex + '"' : '' ) + '\
355
362
id="{{ inputId || \'fl-input-\' + $mdAutocompleteCtrl.id }}"\
356
363
name="{{inputName}}"\
364
+ ng-class="::inputClass"\
357
365
autocomplete="off"\
358
366
ng-required="$mdAutocompleteCtrl.isRequired"\
359
367
ng-readonly="$mdAutocompleteCtrl.isReadonly"\
@@ -380,6 +388,7 @@ function MdAutocomplete ($$mdSvgRegistry) {
380
388
' + ( tabindex != null ? 'tabindex="' + tabindex + '"' : '' ) + '\
381
389
id="{{ inputId || \'input-\' + $mdAutocompleteCtrl.id }}"\
382
390
name="{{inputName}}"\
391
+ ng-class="::inputClass"\
383
392
ng-if="!floatingLabel"\
384
393
autocomplete="off"\
385
394
ng-required="$mdAutocompleteCtrl.isRequired"\
0 commit comments