oaeproject/3akai-ux — pull request #3572 by mrvisser (2014-02-27 22:15:38+00:00)
Title: Componentize the list option header

Currently when a list option header is added to lists this is done by duplicating the existing code from another widget. The list options header should be made into a component as part of the list macro. #3541 should be incorporated in this PR.

![screen shot 2014-02-27 at 14 39 10](https://f.cloud.github.com/assets/218391/2283388/f44e4ea0-9fbc-11e3-934c-d43ca0672934.png)

The list options macro function should take 5 parameters:
- `title` - The title to be shown in the list options header
- `[showNavToggle]` - Whether or not to show the navigation toggle button next to the title. Defaults to `true`.
- `[showSearch]` - Whether or not to show the search bar. Defaults to `true`.
- `[actionRenderer]` - Function to be called that renders action buttons.
- `[showViewOptions]` - Whether or not the list view options should be shown. Defaults to `true`.

Notes:
- When no `actionRenderer` function is defined and `showViewOptions` is `false` the `title` should be rendered as a div and the icon should be omitted.
- When the user is anonymous the `actionRenderer` function shouldn't be executed.
- Search functionality should be handled by `jquery.list-options.js`.