Skip to content

Commit 5fab4d6

Browse files
Fix pfSelect documentation to show appropriate parameters
1 parent dec3c1e commit 5fab4d6

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

bower.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,8 @@
5252
"devDependencies": {
5353
"angular-mocks": "1.5.*",
5454
"angular-ui-router": "^1.0.0-beta.3"
55+
},
56+
"resolutions": {
57+
"jquery": "~2.1.4"
5558
}
5659
}

src/select/examples/select.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33
* @name patternfly.select.component:pfSelect
44
* @restrict E
55
*
6-
* @param {string} ngModel Model binding using the {@link https://docs.angularjs.org/api/ng/type/ngModel.NgModelController/ NgModelController} is mandatory.
7-
* @param {string=} ngOptions The `{@link https://docs.angularjs.org/api/ng/directive/select/ ngOptions}` attribute can be used to dynamically generate a list of `<option>` elements
6+
* @param {object} selected Curently selected value
7+
* @param {object} options Array of valid selections
8+
* @param {string} displayField Field from the object in the array to display for selection (optional)
9+
* @param {string} emptyValue value to display when nothing is selected
10+
* @param {function(item)} onSelect Function to call upon user selection of an item.
811
*
912
* @description
1013
* The pfSelect component provides a wrapper for the angular ui bootstrap dropdown container allowing for use of ng-model and ng-options

0 commit comments

Comments
 (0)