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 () { ...@@ -2,9 +2,15 @@ module.exports = function () {
return { return {
restrict: 'E', restrict: 'E',
scope: { scope: {
/** The name of the currently selected sort criteria. */
sortBy: '=', sortBy: '=',
/** A list of choices that the user can opt to sort by. */
sortOptions: '=', sortOptions: '=',
/** If true, the menu uses just an icon, otherwise
* it displays 'Sorted by {{sortBy}}'
*/
showAsIcon: '=', showAsIcon: '=',
/** Called when the user changes the current sort criteria. */
onChangeSortBy: '&', onChangeSortBy: '&',
}, },
templateUrl: 'sort_dropdown.html', 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