Improve this doc View source

pfSelect
directive in module patternfly.select

Description

The pfSelect component provides a wrapper for the angular ui bootstrap dropdown.

Usage

as element:
<pf-select
       selected
       options="{object}"
       display-field="{string}"
       empty-value="{string}"
       on-select="{function(item)}">
</pf-select>

Parameters

ParamTypeDetails
selectedobject

Curently selected value

optionsobject

Array of valid selections

displayFieldstring

Field from the object in the array to display for selection (optional)

emptyValuestring

value to display when nothing is selected

onSelectfunction(item

Function to call upon user selection of an item.

Example

Source





Demo