Commit 7a0bca59 authored by Robert Knight's avatar Robert Knight Committed by Nick Stenning

Add API comments for dropdown menu directive

T-91
parent f0aaf620
......@@ -2,9 +2,15 @@ module.exports = function () {
return {
restrict: 'E',
scope: {
/** The name of the currently selected sort criteria. */
sortBy: '=',
/** A list of choices that the user can opt to sort by. */
sortOptions: '=',
/** If true, the menu uses just an icon, otherwise
* it displays 'Sorted by {{sortBy}}'
*/
showAsIcon: '=',
/** Called when the user changes the current sort criteria. */
onChangeSortBy: '&',
},
templateUrl: 'sort_dropdown.html',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment