diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2013-09-06 15:27:06 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2013-10-16 18:08:17 +0200 |
commit | efafd7fe871bc368b91db78bb132abb027141a24 (patch) | |
tree | f6d71bae937e31c7090828382af8b404b1ce7e1f /install/ui/src/freeipa/menu.js | |
parent | 3fa304d95ec59efe0eb1cb8241d88a173802b172 (diff) | |
download | freeipa.git-efafd7fe871bc368b91db78bb132abb027141a24.tar.gz freeipa.git-efafd7fe871bc368b91db78bb132abb027141a24.tar.xz freeipa.git-efafd7fe871bc368b91db78bb132abb027141a24.zip |
Web UI source code annotation
Part of ongoing Web UI documentation effort. Source code is annotated in a way that it can be processed by documentation generator.
Diffstat (limited to 'install/ui/src/freeipa/menu.js')
-rw-r--r-- | install/ui/src/freeipa/menu.js | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/install/ui/src/freeipa/menu.js b/install/ui/src/freeipa/menu.js index c903e16d..3da64389 100644 --- a/install/ui/src/freeipa/menu.js +++ b/install/ui/src/freeipa/menu.js @@ -18,11 +18,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -/** - * Menu proxy. - * - * Exports public interface for dealing with menu items. - */ + define([ 'dojo/_base/lang', './app', // creates circular dependency @@ -37,12 +33,20 @@ define([ }, /** + * Menu proxy. + * + * Exports public interface for dealing with menu items. + * @class menu + */ + + /** * Adds menu item. * Takes a spec of menu item. * Normalizes item's name, parent, adds children if specified * - * @param {menu_item} items - * @param {String|menu_item} parent + * @method add_item + * @param {navigation.MenuItem} item + * @param {string|navigation.MenuItem} parent * @param {Object} options */ add_item = function(item, parent, options) { @@ -53,8 +57,8 @@ define([ /** * Removes menu item * - * @param {String|menu_item} name or menu item to remove - * + * @method remove_item + * @param {string|navigation.MenuItem} name or menu item to remove */ remove_item = function(item) { @@ -66,9 +70,10 @@ define([ * Query internal data store by using default search options or supplied * search options. * - * @param Object Query filter - * @param ?Object Search options, overrides default - * @return QueryResult + * @method query + * @param {Object} query + * @param {Object} [search_options] Search options, overrides default + * @return {QueryResult} */ query = function(query, search_options) { @@ -83,6 +88,8 @@ define([ /** * Get current instance of menu + * @method get + * @return {navigation.Menu} */ get = function() { return get_menu(); |